private void addCustomSettings(CustomCodeStyleSettings settings) { if (settings != null) { synchronized (myCustomSettings) { myCustomSettings.put(settings.getClass(), settings); } } }