String (@NotNull Object element) { if (!(element instanceof NavigationItem)) { throw new AssertionError(element + " of " + element.getClass() + " in " + this + " of " + getClass()); } return ((NavigationItem)element).getName(); }