BaseCreatePolicy (final ConfigurationContext context) { final RunnerAndConfigurationSettings configuration = findExisting(context); if (configuration == null) { return Holder.CREATE_AND_EDIT; } if (configuration.getConfiguration() instanceof SyntheticRunConfigurationBase) { return Holder.DISABLED; } return Holder.EDIT; }