SearchScope FindOperator(IMethod op, Func<IMethod, FindReferenceNavigator> factory) { return new SearchScope( delegate (ICompilation compilation) { IMethod imported = compilation.Import(op); return imported != null ? factory(imported) : null; }); }