code: protected GitSettings lookupSettings() {
                  if (getProject() != null && settingsRef != null) {
                          Reference ref = (Reference) getProject().getReference(settingsRef);
  
                          if (ref != null) {
                                  GitSettings settings = (GitSettings) ref.getReferencedObject();
  
                                  return settings;
                          }
                  }
  
                  return null;
          }
docs: Lookup the git settings for this task via a project reference
  
  @return The configured git settings for this task