public static boolean isInPopupToolbar(@Nullable Component component) {
    return ComponentUtil.getParentOfType(PopupToolbar.class, component) != null;
  }
public static boolean isInPopupToolbar(@Nullable Component component)