private boolean noLoops(@Nullable TreeItem<?> item, @Nonnull TreeItem<?> child) {
		if (item == null)
			return true;
		if (item.getValue() == child.getValue())
			return false;
		return noLoops(item.getParent(), child);
	}
@param item
		Item to check against.
@param child
		Item to add.

@return {@code true} when no cycles are detected.
recaf-ui/src/main/java/software/coley/recaf/ui/pane/editing/tabs/InheritancePane.java