AnAction[] (@NotNull final GradleTestsExecutionConsole consoleView) { JavaRerunFailedTestsAction rerunFailedTestsAction = new GradleRerunFailedTestsAction(consoleView); rerunFailedTestsAction.setModelProvider(() -> consoleView.getResultsViewer()); return new AnAction[]{rerunFailedTestsAction, new JvmToggleAutoTestAction()}; }