void (boolean consoleEditorEnabled) { if (isConsoleEditorEnabled() == consoleEditorEnabled) { return; } if (consoleEditorEnabled) { FileEditorManager.getInstance(getProject()).closeFile(getVirtualFile()); myCurrentEditor = myConsoleEditor; } myConsoleEditor.getComponent().setVisible(consoleEditorEnabled); }