void () { writeCommandAction(myProject).run(() -> { for (PsiFile file : myTempFiles) { try { file.delete(); } catch (IncorrectOperationException e) { LOG.warn(e); } } }); if (!myEventsSchemeEditor.isDisposed()) { EditorFactory.getInstance().releaseEditor(myEventsSchemeEditor); } if (!myResultEditor.isDisposed()) { EditorFactory.getInstance().releaseEditor(myResultEditor); } super.dispose(); }