@Nullable
  private static Project getProjectFromContext(ConfigurationContext context) {
    final Location<?> contextLocation = context.getLocation();
    if (!(contextLocation instanceof ExternalSystemTaskLocation)) {
      return null;
    }
    return contextLocation.getProject();
  }
@Nullable
  private static Project getProjectFromContext(ConfigurationContext context)