@NotNull
  private static CodeStyleSettings init(@Nullable CodeStyleScheme parentScheme) {
    final CodeStyleSettings settings;
    if (parentScheme == null) {
      settings = CodeStyleSettingsManager.getInstance().createSettings();
      LOG.debug("Initialized using empty settings");
    }
    else {
      CodeStyleSettings parentSettings = parentScheme.getCodeStyleSettings();
      settings = CodeStyleSettingsManager.getInstance().cloneSettings(parentSettings);
      while (parentSettings.getParentSettings() != null) {
        parentSettings = parentSettings.getParentSettings();
      }
      settings.setParentSettings(parentSettings);
      LOG.debug("Initialized using parent scheme '" + parentScheme.getName() + "'");
    }

    return settings;
  }
@NotNull
  private static CodeStyleSettings init(@Nullable CodeStyleScheme parentScheme)