private boolean moduleOrDependenciesHavePerformanceInformationRecursive(TopologyElement element) {

      if (element.hasPerformanceInformation()) {
         return true;
      }

      List<TopologyElementCalled> dependences = element.getDependences();
      for (TopologyElementCalled elementCalled : dependences) {
         if (moduleOrDependenciesHavePerformanceInformationRecursive(elementCalled.getElement())) {
            return true;
         }
      }
      return false;
   }
private boolean moduleOrDependenciesHavePerformanceInformationRecursive ( TopologyElement element ) { if ( element . hasPerformanceInformation ( ) ) { return true ; } List < TopologyElementCalled > dependences = element . getDependences ( ) ; for ( TopologyElementCalled elementCalled : dependences ) { if ( moduleOrDependenciesHavePerformanceInformationRecursive ( elementCalled . getElement ( ) ) ) { return true ; } } return false ; }
@param element
@return whether any among the input element or its dependencies (deep)
contain information required for the performance evaluation