void () { final MyProcessController processController = new MyProcessController(); myErrorsView.setProcessController(processController); openMessageView(); processController.setFuture(ApplicationManager.getApplication().executeOnPooledThread( () -> ApplicationManager.getApplication().runReadAction(() -> super.startProcessing()))); ToolWindowManager.getInstance(myProject).getToolWindow(ToolWindowId.MESSAGES_WINDOW).activate(null); }