public static void forceRootHighlighting(@NotNull PsiElement root, @NotNull FileHighlightingSetting level) {
    HighlightingSettingsPerFile component = HighlightingSettingsPerFile.getInstance(root.getProject());
    if (component == null) return;

    component.setHighlightingSettingForRoot(root, level);
  }
public static void forceRootHighlighting(@NotNull PsiElement root, @NotNull FileHighlightingSetting level)