@NotNull
  private static SmartBackspaceMode getBackspaceMode(@NotNull PsiFile file, @NotNull Language language) {
    SmartBackspaceMode mode = CodeInsightSettings.getInstance().getBackspaceMode();
    BackspaceModeOverride override = LanguageBackspaceModeOverride.INSTANCE.forLanguage(language);
    if (override != null) {
      mode = override.getBackspaceMode(file, mode);
    }
    return mode;
  }
@NotNull
  private static SmartBackspaceMode getBackspaceMode(@NotNull PsiFile file, @NotNull Language language)