public static boolean hasOwnContent(UnnamedConfigurable configurable) { SearchableConfigurable.Parent parent = cast(SearchableConfigurable.Parent.class, configurable); return parent != null && parent.hasOwnContent(); }
private static boolean isEmptyParent(Configurable configurable) { SearchableConfigurable.Parent parent = ConfigurableWrapper.cast(SearchableConfigurable.Parent.class, configurable); return parent != null && !parent.hasOwnContent(); }