private List < String > convertImports ( Collection < ImportedVariable > importedVariables ) { List < String > result = new ArrayList <> ( ) ; for ( ImportedVariable var : importedVariables ) { String componentOrFacet = VariableHelpers . parseVariableName ( var . getName ( ) ) . getKey ( ) ; String s = applyLink ( var . getName ( ) , componentOrFacet ) ; s += var . isOptional ( ) ? this . messages . get ( "optional" ) : this . messages . get ( "required" ) ; //$NON-NLS-1$ //$NON-NLS-2$ if ( var . isExternal ( ) ) s += this . messages . get ( "external" ) ; //$NON-NLS-1$ result . add ( s ) ; } return result ; }
Converts imports to a human - readable text .