public void addComponent(@NotNull Component component, @NotNull Function<? super Component, ? extends Rectangle> hover) {
      myComponents.add(Pair.create(component, hover));
    }
public void addComponent(@NotNull Component component, @NotNull Function<? super Component, ? extends Rectangle> hover)