Query<IndexPatternOccurrence> (@NotNull PsiFile file, @NotNull IndexPattern pattern, int startOffset, int endOffset) { final SearchParameters parameters = new SearchParameters(file, pattern, new TextRange(startOffset, endOffset)); return getInstance().createQuery(parameters); }