ConsoleView () { RunContentDescriptor contentDescriptor = RunContentManager.getInstance(getEnvironment().getProject()) .findContentDescriptor(getEnvironment().getExecutor(), this); ConsoleView console = null; if (contentDescriptor != null && contentDescriptor.getExecutionConsole() instanceof ConsoleView) { console = (ConsoleView)contentDescriptor.getExecutionConsole(); } return console; }