public CodeElement addSupportingType(String type) {
        CodeElement codeElement = new CodeElement(type);
        codeElement.setRole(CodeElementRole.Supporting);
        this.codeElements.add(codeElement);

        return codeElement;
    }
public CodeElement addSupportingType ( String type ) { CodeElement codeElement = new CodeElement ( type ) ; codeElement . setRole ( CodeElementRole . Supporting ) ; this . codeElements . add ( codeElement ) ; return codeElement ; }
Adds a supporting type to this Component.

@param type  the fully qualified type name
@return  a CodeElement representing the supporting type
@throws IllegalArgumentException if the specified type is null