private final static Map<String, String> validateUserSettings(Map<String, String> userSettings)
  {

    for (String key : userSettings.keySet()) {
      if (ManagedSetting.forName(key.trim()) != null) {
        throw new IllegalArgumentException(
              "Setting '"
                    + key
                    + "' contained in user settings. This settings is managed by the plugin and must not be provided from outside.");
      }
    }
    return userSettings;
  }
private final static Map < String , String > validateUserSettings ( Map < String , String > userSettings ) { for ( String key : userSettings . keySet ( ) ) { if ( ManagedSetting . forName ( key . trim ( ) ) != null ) { throw new IllegalArgumentException ( "Setting '" + key + "' contained in user settings. This settings is managed by the plugin and must not be provided from outside." ) ; } } return userSettings ; }
@param userSettings
to be validated.
@return the passed in userSettings if validation passed without exception
@throws IllegalArgumentException
if the userSettings contain a key of an XCode setting that is managed by the plugin.