void () { myElement.setFileDescription(new MyNonHighlightingDomFileDescription()); assertEquals(DomHighlightStatus.NONE, myAnnotationsManager.getHighlightStatus(myElement)); myAnnotationsManager.appendProblems(myElement, createHolder(), MockDomInspection.getInspection()); assertEquals(DomHighlightStatus.INSPECTIONS_FINISHED, myAnnotationsManager.getHighlightStatus(myElement)); }