public final List < ParameterizedTemplateModel > findReferencesTo ( final File templateDir , final File templateFile ) { final List < ParameterizedTemplateModel > result = new ArrayList < ParameterizedTemplateModel > ( ) ; if ( ( paramTemplates != null ) && Utils4J . fileInsideDirectory ( templateDir , templateFile ) ) { for ( final ParameterizedTemplateModel paramTemplate : paramTemplates ) { if ( paramTemplate . hasReferenceTo ( templateDir , templateFile ) ) { result . add ( paramTemplate ) ; } } } return result ; }
Returns a list that contains all models that reference the given template .