boolean ( @NotNull GradleRunConfiguration configuration, @NotNull ConfigurationContext context, @NotNull Ref<PsiElement> sourceElement ) { if (!GradleConstants.SYSTEM_ID.equals(configuration.getSettings().getExternalSystemId())) return false; if (sourceElement.isNull()) return false; if (isUsedTestRunners(context, PLATFORM)) return false; configuration.setDebugServerProcess(false); configuration.setRunAsTest(true); boolean result = doSetupConfigurationFromContext(configuration, context, sourceElement); restoreDefaultScriptParametersIfNeeded(configuration, context); return result; }