void () { AppUIExecutor.onWriteThread(ModalityState.nonModal()).later().submit(() -> { if (!myManager.isDisposed()) { myManager.dropPsiCaches(); } VirtualFile vFile = getVirtualFile(); if (vFile != null && vFile.isValid()) { Document doc = FileDocumentManager.getInstance().getCachedDocument(vFile); if (doc != null) { FileDocumentManager.getInstance().saveDocument(doc); } FileContentUtilCore.reparseFiles(vFile); StubTreeLoader.getInstance().rebuildStubTree(vFile); } }); }