void (@NotNull RunnerAndConfigurationSettingsImpl s) { ArrayList<BeforeRunTask<?>> tasks = new ArrayList<>(s.getManager().getBeforeRunTasks(s.getConfiguration())); if (!isSelected()) { if (!hasTask(s)) { CompileStepBeforeRun.MakeBeforeRunTask task = new CompileStepBeforeRun.MakeBeforeRunTask(); task.setEnabled(true); tasks.add(task); } } else { tasks.removeIf(t -> CompileStepBeforeRun.ID == t.getProviderId()); } s.getManager().setBeforeRunTasks(s.getConfiguration(), tasks); }