public static void highlight(@NotNull PsiFile file, @NotNull HighlightInfoHolder holder, @NotNull Consumer<@NotNull JavaElementVisitor> consumer) {
    JavaNamesHighlightVisitor visitor = new JavaNamesHighlightVisitor();
    if (!visitor.suitableForFile(file)) return;
    visitor.analyze(file, false, holder, () -> {
      consumer.accept(visitor);
    });
  }
public static void highlight(@NotNull PsiFile file, @NotNull HighlightInfoHolder holder, @NotNull Consumer<@NotNull JavaElementVisitor> consumer)