code: public static FilePath getSettingsFilePath(SettingsProvider settings, AbstractBuild<?, ?> build, TaskListener listener) {
          FilePath settingsPath = null;
          if (settings != null) {
              settingsPath = settings.supplySettings(build, listener);
          }
          return settingsPath;
      }
docs: Convenience method handling all <code>null</code> checks. Provides the path on the (possible) remote settings file.
  
  @param settings
  the provider to be used
  @param build
  the active build
  @param listener
  the listener of the current build
  @return the path to the settings.xml