public ClassRef toReference(TypeRef... arguments) {
        List<TypeRef> actualArguments = new ArrayList<TypeRef>();
        for (int i = 0; i < parameters.size(); i++) {
            if (i < arguments.length) {
                actualArguments.add(arguments[i]);
            } else {
                actualArguments.add(new WildcardRef());
            }
        }
        return new ClassRefBuilder()
                .withDefinition(this)
                .withArguments(actualArguments)
                .withAttributes(getAttributes())
                .build();
    }
public ClassRef toReference ( TypeRef ... arguments ) { List < TypeRef > actualArguments = new ArrayList < TypeRef > ( ) ; for ( int i = 0 ; i < parameters . size ( ) ; i ++ ) { if ( i < arguments . length ) { actualArguments . add ( arguments [ i ] ) ; } else { actualArguments . add ( new WildcardRef ( ) ) ; } } return new ClassRefBuilder ( ) . withDefinition ( this ) . withArguments ( actualArguments ) . withAttributes ( getAttributes ( ) ) . build ( ) ; }
Creates a {@link ClassRef} for the current definition with the specified arguments.

@param arguments The arguments to be passed to the reference.