question: public final void searchPattern ( IProgressMonitor monitor ) throws JavaModelException { Assert . isNotNull ( fPattern ) ; if ( monitor == null ) monitor = new NullProgressMonitor ( ) ; try { monitor . beginTask ( "" , 1 ) ; monitor . setTaskName ( RefactoringCoreMessages . RefactoringSearchEngine_searching_occurrences ) ; try { SearchEngine engine = null ; if ( fOwner != null ) engine = new SearchEngine ( fOwner ) ; else engine = new SearchEngine ( fWorkingCopies ) ; engine . search ( fPattern , SearchUtils . getDefaultSearchParticipants ( ) , fScope , getCollector ( ) , new SubProgressMonitor ( monitor , 1 , SubProgressMonitor . SUPPRESS_SUBTASK_LABEL ) ) ; } catch ( CoreException exception ) { throw new JavaModelException ( exception ) ; } } finally { monitor . done ( ) ; } }
target:  Performs the search according to the specified pattern.