void (@NotNull ProgressIndicator progress) { if (!shouldHighlight(myGroovyBaseFile)) return; List<HighlightInfo> myInfos = new ArrayList<>(); myGroovyBaseFile.accept(new InaccessibleElementVisitor(myGroovyBaseFile, myProject, (__, info) -> myInfos.add(info))); BackgroundUpdateHighlightersUtil.setHighlightersToEditor(myProject, myPsiFile, myDocument, 0, myGroovyBaseFile.getTextLength(), myInfos, getId()); }