public static @Nullable String getHintLabel(JComponent hintComponent) {
    return hintComponent instanceof HintLabel ? ((HintLabel)hintComponent).getText() : null;
  }
public static @Nullable String getHintLabel(JComponent hintComponent)