question: public static SearchPattern createAndPattern ( SearchPattern leftPattern , SearchPattern rightPattern ) { return new AndPattern ( leftPattern , rightPattern ) ; }
target:  Returns a search pattern that combines the given two patterns into an "and" pattern. The search result will match both the left pattern and the right pattern.