private ITypeDeclaration FindType(SolutionModel solutionModel, IEnumerable <string> locations, string typeName) { ITypeDeclaration @class = solutionModel.GetClass(locations, typeName); if (@class != null) { return((ITypeDeclaration) new CodeModelService.VisualStudioCodeModelService.MessageFilterTypeDeclaration(this.services, @class)); } return((ITypeDeclaration)null); }