public static void setTooltipRecursively(@NotNull Component component, @Nls String text) {
    forEachComponentInHierarchy(component, c -> ((JComponent)c).setToolTipText(text));
  }
public static void setTooltipRecursively(@NotNull Component component, @Nls String text)