void () { if (getProject().isOpen()) { FileEditorManager editorManager = FileEditorManager.getInstance(getProject()); if (editorManager.isFileOpen(getVirtualFile())) { editorManager.closeFile(getVirtualFile()); } } }