public static PathMetadata forListAccess(Path<?> parent, @Range(from = 0, to = Integer.MAX_VALUE) int index) {
        return new PathMetadata(parent, index, PathType.LISTVALUE_CONSTANT);
    }
Create a new PathMetadata instance for indexed list access

@param parent parent path
@param index index of element
@return list access path
querydsl-core/src/main/java/com/querydsl/core/types/PathMetadataFactory.java