void () { super.initUI(); // Console myResultsViewer.addEventsListener(new TestResultsViewer.EventsListener() { @Override public void onSelected(@Nullable SMTestProxy selectedTestProxy, @NotNull TestResultsViewer viewer, @NotNull TestFrameworkRunningModel model) { if (selectedTestProxy == null || myResultsViewer.getTreeBuilder().isDisposed()) { return; } // print selected content getPrinter().updateOnTestSelected(selectedTestProxy); } }); }