List<TextRange> (@NotNull PsiFile file, boolean processChangedTextOnly) { if (processChangedTextOnly) { ChangedRangesInfo info = VcsFacade.getInstance().getChangedRangesInfo(file); return info != null ? info.allChangedRanges : Collections.emptyList(); } if (mySelectionModel != null) { return getSelectedRanges(mySelectionModel); } return !myRanges.isEmpty() ? myRanges : List.of(file.getTextRange()); }