void () { IdentifierHighlighterPassFactory.doWithHighlightingEnabled(getProject(), getTestRootDisposable(), ()-> { try { configureFile(); } catch (Exception e) { throw new RuntimeException(e); } doHighlighting(); Segment[] segments = getIdentifierHighlighters().toArray(Segment.EMPTY_ARRAY); assertSegments(segments, "28:33 param", "60:65 param", "68:73 param"); }); }