void () { CommandProcessor.getInstance().executeCommand(getProject(), () -> { try { configureByFile(BASE_PATH + "/pack/InsideBlock.java"); } catch (Exception e) { throw new RuntimeException(e); } }, null, null); final VirtualFile virtualFile = myFile.getVirtualFile(); List<HighlightInfo> errors = highlightErrors(); myWolfTheProblemSolver.waitForFilesQueuedForInvalidationAreProcessed(); assertTrue(myWolfTheProblemSolver.isProblemFile(virtualFile)); assertEquals(1, errors.size()); type(';'); errors = highlightErrors(); assertEmpty(errors); myWolfTheProblemSolver.waitForFilesQueuedForInvalidationAreProcessed(); assertFalse(myWolfTheProblemSolver.isProblemFile(virtualFile)); }