public static void showText(JComponent component, int direction, @NlsContexts.Label String text) {
    final RelativePoint point = new RelativePoint(component, new Point(component.getWidth() / 2, component.getHeight() / 2));
    showText(point, direction, text);
  }
public static void showText(JComponent component, int direction, @NlsContexts.Label String text)