void () { myAnnotationsManager.appendProblems(myElement, createHolder(), MyDomElementsInspection.class); assertTrue(myAnnotationsManager.isHolderUpToDate(myElement)); final DomElementsProblemsHolder holder = myAnnotationsManager.getProblemHolder(myElement); getPsiManager().dropPsiCaches(); assertFalse(myAnnotationsManager.isHolderUpToDate(myElement)); myAnnotationsManager.appendProblems(myElement, createHolder(), MyDomElementsInspection.class); assertNotSame(holder, assertNotEmptyHolder(myAnnotationsManager.getProblemHolder(myElement))); }