void (Project project, RunConfiguration settings, Key<? extends BeforeRunTask> @NotNull ... keys) { for (Key<? extends BeforeRunTask> key : keys) { List<? extends BeforeRunTask> tasks = getInstanceEx(project).getBeforeRunTasks(settings, key); for (BeforeRunTask task : tasks) { task.setEnabled(false); } } }