default <T> boolean onValue(@Nonnull Class<T> type, @Nonnull Consumer<T> action) {
		T value = getValueOfType(type);
		if (value != null) {
			action.accept(value);
			return true;
		}
		return false;
	}
@param type
		Some type contained in the full path.
		This includes the current {@link PathNode} and any {@link #getParent() parent}.
@param action
		Action to run on the discovered value in the path.
		If no value is found, the action is not run.
@param <T>
		Implied value type.

@return {@code true} when a matching value was found and the action was run.
recaf-core/src/main/java/software/coley/recaf/path/PathNode.java