private @Nullable TabLabel findLabel(Component c) {
    Component eachParent = c;
    while (eachParent != null && eachParent != tabs) {
      if (eachParent instanceof TabLabel) return (TabLabel)eachParent;
      eachParent = eachParent.getParent();
    }

    return null;
  }
private @Nullable TabLabel findLabel(Component c)