void () { myAnnotationsManager.appendProblems(myElement, createHolder(), MyDomElementsInspection.class); final DomElementsProblemsHolderImpl holder = (DomElementsProblemsHolderImpl)myAnnotationsManager.getProblemHolder(myElement); assertTrue(holder.isInspectionCompleted(MyDomElementsInspection.class)); assertFalse(holder.isInspectionCompleted(DomElementsInspection.class)); }