Collection<TextRange> (@NotNull PsiFile file, boolean processChangedTextOnly) { if (mySelectionModel != null) { return getSelectedRanges(mySelectionModel); } if (processChangedTextOnly) { return VcsFacade.getInstance().getChangedTextRanges(myProject, file); } return new SmartList<>(file.getTextRange()); }