private static void adjustLineIndent(@NotNull Project project, PsiFile file, Language language, TextRange range) {
      CodeStyleSettings settings = CodeStyle.getSettings(file);
      CodeStyleSettings cloneSettings = CodeStyleSettingsManager.getInstance(project).cloneSettings(settings);
      CommonCodeStyleSettings formatSettings = cloneSettings.getCommonSettings(language);
      formatSettings.KEEP_FIRST_COLUMN_COMMENT = false;
      CodeStyle.runWithLocalSettings(project, cloneSettings,
                                     () -> CodeStyleManager.getInstance(project).adjustLineIndent(file, range));
    }
private static void adjustLineIndent(@NotNull Project project, PsiFile file, Language language, TextRange range)