public static SearchPattern createOrPattern(SearchPattern leftPattern,SearchPattern rightPattern){
  return new OrPattern(leftPattern,rightPattern);
}

public static SearchPattern createOrPattern ( SearchPattern leftPattern , SearchPattern rightPattern ) { return new OrPattern ( leftPattern , rightPattern ) ; }
returns a search pattern that combines the given two patterns into an " or " pattern . the search result will match either the left pattern or the right pattern .
