public static Set < String > findPrefixesForImportedVariables ( Instance instance ) { Set < String > result = new HashSet <> ( ) ; for ( ImportedVariable var : ComponentHelpers . findAllImportedVariables ( instance . getComponent ( ) ) . values ( ) ) result . ( VariableHelpers . parseVariableName ( var . getName ( ) ) . getKey ( ) ) ; return result ; }
Finds the component and facet names that prefix the variables an instance imports .