Set<TextRange> (@NotNull TextRange range) { if (myPsiFile.getProject().isDefault() || range.isEmpty()) return Collections.emptySet(); Set<TextRange> injectedRanges = injectedFileRangesMap.get(range.getStartOffset()); if (injectedRanges == null) { injectedRanges = collectInjectedRanges(range); injectedFileRangesMap.put(range.getStartOffset(), injectedRanges); } return injectedRanges; }