code: private void setSearchScopeFilter(CmsObject cms) {
  
          final List<String> searchRoots = CmsSearchUtil.computeScopeFolders(cms, this);
  
          // If the resource types contain the type "function" also
          // add "/system/modules/" to the search path
  
          if ((null != getResourceTypes()) && containsFunctionType(getResourceTypes())) {
              searchRoots.add("/system/modules/");
          }
  
          addFoldersToSearchIn(searchRoots);
      }
docs: Sets the search scope.
  
  @param cms The current CmsObject object.