void () { myElement.setFileDescription(new MyNonHighlightingDomFileDescription()); myInspectionProfile.setInspectionTools(Collections.singletonList(new LocalInspectionToolWrapper(new MyDomElementsInspection()))); assertNull(myAnnotationsManager.getMockInspection(myElement)); }