public static @Nullable Component findNearestOpaque(Component c) {
    return ComponentUtil.findParentByCondition(c, Component::isOpaque);
  }
public static @Nullable Component findNearestOpaque(Component c)