private void processBuildFileReferences(SearchParameters params,BuildFile file){
  WorkspacePath workspacePath=file.getPackageWorkspacePath();
  if (workspacePath == null) {
    return;
  }
  List<String> stringsToSearch=Lists.newArrayList();
  if (file.getBlazeFileType() == BlazeFileType.BuildPackage) {
    stringsToSearch.add("//" + workspacePath);
  }
 else {
    stringsToSearch.add("//" + workspacePath + ":"+ file.getName());
    stringsToSearch.add("//" + workspacePath + "/"+ file.getName());
  }
  for (  String string : stringsToSearch) {
    searchForString(params,file,string);
  }
}

private void processBuildFileReferences ( SearchParameters params , BuildFile file ) { WorkspacePath workspacePath = file . getPackageWorkspacePath ( ) ; if ( workspacePath == null ) { return ; } List < String > stringsToSearch = Lists . newArrayList ( ) ; if ( file . getBlazeFileType ( ) == BlazeFileType . BuildPackage ) { stringsToSearch . add ( "//" + workspacePath ) ; } else { stringsToSearch . add ( "//" + workspacePath + ":" + file . getName ( ) ) ; stringsToSearch . add ( "//" + workspacePath + "/" + file . getName ( ) ) ; } for ( String string : stringsToSearch ) { searchForString ( params , file , string ) ; } }
find references to both the file itself , and build targets defined in the file .
