@Override public void reformatTextWithContext(@NotNull PsiFile file, @NotNull ChangedRangesInfo info) throws IncorrectOperationException { List<TextRange> ranges = new ArrayList<>(); if (info.insertedRanges != null) { ranges.addAll(info.insertedRanges); } ranges.addAll(info.allChangedRanges); this.reformatTextWithContext(file, ranges); }
@Override public void reformatTextWithContext(PsiFile psiFile, ChangedRangesInfo changedRangesInfo) throws IncorrectOperationException { delegate.reformatTextWithContext(psiFile, changedRangesInfo); }
@Override public void reformatTextWithContext(@NotNull PsiFile psiFile, @NotNull ChangedRangesInfo changedRangesInfo) throws IncorrectOperationException { original.reformatTextWithContext(psiFile, changedRangesInfo); }
public FormatTextRanges(@Nonnull ChangedRangesInfo changedRangesInfo) { changedRangesInfo.allChangedRanges.forEach((range) -> add(range, true)); myInsertedRanges = changedRangesInfo.insertedRanges; }