public static boolean isSetInHierarchy(@Nullable Component component, @NotNull @NonNls Object key) {
    return null != findInHierarchy(component, key);
  }
public static boolean isSetInHierarchy(@Nullable Component component, @NotNull @NonNls Object key)