static @Nullable RelativePoint computePreferredPopupPoint(@NotNull JComponent toolbar, @NotNull AnAction action) {
    for (Component comp : toolbar.getComponents()) {
      if (comp instanceof ActionButtonComponent) {
        if (comp instanceof AnActionHolder) {
          AnAction componentAction = ((AnActionHolder)comp).getAction();
          if (componentAction == action ||
              (componentAction instanceof ActionWithDelegate<?> && ((ActionWithDelegate<?>)componentAction).getDelegate() == action)) {
            return new RelativePoint(comp.getParent(), new Point(comp.getX(), comp.getY() + comp.getHeight()));
          }
        }
      }
    }
    return null;
  }
static @Nullable RelativePoint computePreferredPopupPoint(@NotNull JComponent toolbar, @NotNull AnAction action)