@Nullable
	@SuppressWarnings("unchecked")
	default <T> T getValueOfType(@Nonnull Class<T> type) {
		PathNode<?> path = this;
		while (path != null) {
			if (type.isAssignableFrom(path.getValueType()))
				return (T) path.getValue();
			path = path.getParent();
		}
		return null;
	}
@param type
		Some type contained in the full path.
		This includes the current {@link PathNode} and any {@link #getParent() parent}.
@param <T>
		Implied value type.

@return Instance of value from the path, or {@code null} if not found in this path.

@see #getPathOfType(Class) Get the containing {@link PathNode} instead of the direct value.
recaf-core/src/main/java/software/coley/recaf/path/PathNode.java