boolean (@NotNull Project project, @NotNull ProjectTask projectTask, @Nullable ProjectTaskContext context) { if (context != null && context.getRunConfiguration() instanceof JavaScratchConfiguration) { return false; } return canRun(project, projectTask); }