return _searchPatternFactory.getSearchPattern(searchFor, moduleName, name, arity, limitTo, module);
}
public static void runQuery(final ErlangSearchPattern pattern, final ErlSearchScope scope, final String scopeDescription, final Shell shell) {
final ErlSearchQuery query = new ErlSearchQuery(pattern, scope, scopeDescription);
boolean _canRunInBackground = query.canRunInBackground();
if (_canRunInBackground) {
NewSearchUI.runQueryInBackground(query);
} else {
IWorkbench _workbench = PlatformUI.getWorkbench();
final IProgressService progressService = _workbench.getProgressService();