default <T extends Node> @NonNull @Unmodifiable Collection<T> getNodes(@NonNull NodeType<T> type) {
        /* This default method is overridden in the implementation, and is just here
           to demonstrate what this method does in the API sources. */
        return getNodes().stream()
                .filter(type::matches)
                .map(type::cast)
                .collect(Collectors.toList());
    }
Gets a flattened view of the holders own {@link Node}s of the given {@code type}.

@param type the type of node to filter by
@param <T> the node type
@return a filtered collection of the holders own nodes
@see #getNodes()
@since 5.1
api/src/main/java/net/luckperms/api/model/PermissionHolder.java