ConsoleViewImpl () { ExecutionConsole executionConsole = myMainRunContentDescriptor.getExecutionConsole(); if (executionConsole instanceof ConsoleViewImpl) { return (ConsoleViewImpl)executionConsole; } if (executionConsole instanceof DataProvider) { Object consoleView = ((DataProvider)executionConsole).getData(LangDataKeys.CONSOLE_VIEW.getName()); if (consoleView instanceof ConsoleViewImpl) { return (ConsoleViewImpl)consoleView; } } return null; }