docs: @SuppressWarnings({"static-method", "checkstyle:npathcomplexity"})
  	public void loadBuilderPreferences(GeneratorConfig2 generatorConfig, IProject context) {
  		final IPreferenceStore preferenceStore = SARLPreferences.getSARLPreferencesFor(context);
  		if (preferenceStore != null) {
  			if (preferenceStore.contains(PREF_GENERATED_TEST_SOURCE_FOLDER)) {
  				generatorConfig.setGeneratedTestSourceFolder(preferenceStore.getString(PREF_GENERATED_TEST_SOURCE_FOLDER));
  			}
  			if (preferenceStore.contains(PREF_GENERATE_INLINE)) {
  				generatorConfig.setGenerateInlineAnnotation(preferenceStore.getBoolean(PREF_GENERATE_INLINE));
  			}
  			if (generatorConfig.isGenerateInlineAnnotation()
  					&& preferenceStore.contains(PREF_USE_EXPRESSION_INTERPRETER)) {
  				generatorConfig.setUseExpressionInterpreterForInlineAnnotation(preferenceStore.getBoolean(
  						PREF_USE_EXPRESSION_INTERPRETER));
  			}
  			if (preferenceStore.contains(PREF_GENERATE_PURE)) {
  				generatorConfig.setGeneratePureAnnotation(preferenceStore.getBoolean(PREF_GENERATE_PURE));
  			}
  			if (preferenceStore.contains(PREF_GENERATE_EQUALITY_TEST_FUNCTIONS)) {
  				generatorConfig.setGenerateEqualityTestFunctions(preferenceStore.getBoolean(PREF_GENERATE_EQUALITY_TEST_FUNCTIONS));
  			}
  			if (preferenceStore.contains(PREF_GENERATE_TOSTRING_FUNCTIONS)) {
  				generatorConfig.setGenerateToStringFunctions(preferenceStore.getBoolean(PREF_GENERATE_TOSTRING_FUNCTIONS));
  			}
  			if (preferenceStore.contains(PREF_GENERATE_CLONE_FUNCTIONS)) {
  				generatorConfig.setGenerateCloneFunctions(preferenceStore.getBoolean(PREF_GENERATE_CLONE_FUNCTIONS));
  			}
  			if (preferenceStore.contains(PREF_GENERATE_SERIAL_NUMBER_FIELDS)) {
  				generatorConfig.setGenerateSerialNumberFields(preferenceStore.getBoolean(PREF_GENERATE_SERIAL_NUMBER_FIELDS));
  			}
  		}
  	}