private static void notifySafely(@NotNull Component component, @NotNull Consumer<? super HoverListener> notify) {
      for (HoverListener listener : HoverListener.getAll(component)) {
        try {
          notify.accept(listener);
        }
        catch (Exception exception) {
          LOG.error(exception);
        }
      }
    }
private static void notifySafely(@NotNull Component component, @NotNull Consumer<? super HoverListener> notify)