@Nullable
  private static ExternalSystemTaskExecutionSettings getTaskSettingsFromContext(ConfigurationContext context) {
    final Location<?> contextLocation = context.getLocation();
    if (!(contextLocation instanceof ExternalSystemTaskLocation)) {
      return null;
    }
    return ((ExternalSystemTaskLocation)contextLocation).getTaskInfo().getSettings();
  }
@Nullable
  private static ExternalSystemTaskExecutionSettings getTaskSettingsFromContext(ConfigurationContext context)