private static JavaCodeStyleSettings getJavaSettings(@NotNull CodeStyleSettings settings) {
    return settings.getCustomSettings(JavaCodeStyleSettings.class);
  }
private static JavaCodeStyleSettings getJavaSettings(@NotNull CodeStyleSettings settings)