public static boolean isTrueInHierarchy(@Nullable Component component, @NotNull Object key) {
    return isSetInHierarchy(component, key, Boolean.TRUE);
  }
public static boolean isTrueInHierarchy(@Nullable Component component, @NotNull Object key)