public static SearchScope restrictScopeToGroovyFiles(SearchScope originalScope, SearchScope effectiveScope) {
    SearchScope restricted = restrictScopeToGroovyFiles(originalScope);
    return restricted.intersectWith(effectiveScope);
  }
public static SearchScope restrictScopeToGroovyFiles(SearchScope originalScope, SearchScope effectiveScope)