void (@NotNull AnActionEvent e, boolean state) { Project project = e.getData(CommonDataKeys.PROJECT); RunContentDescriptor descriptor = e.getData(LangDataKeys.RUN_CONTENT_DESCRIPTOR); ExecutionEnvironment environment = e.getData(ExecutionDataKeys.EXECUTION_ENVIRONMENT); if (project != null && descriptor != null && environment != null) { getAutoTestManager(project).setAutoTestEnabled(descriptor, environment, state); } }