void () { WriteCommandAction.writeCommandAction(getProject()).run(() -> delete(myPrjDir1)); FileManagerImpl fileManager = (FileManagerImpl)myPsiManager.getFileManager(); fileManager.checkConsistency(); }