Bickle.ReSharper.Provider.Elements.BickleUnitTestElement.GetDeclaredType C# (CSharp) Method

GetDeclaredType() private method

private GetDeclaredType ( ) : ITypeElement
return ITypeElement
        private ITypeElement GetDeclaredType()
        {
            IProject module = GetProject();
            if (module == null)
            {
                return null;
            }
            ISolution solution = module.GetSolution();
            if (solution == null)
            {
                return null;
            }
            PsiManager instance = PsiManager.GetInstance(solution);
            using (ReadLockCookie.Create())
            {
                return instance.GetDeclarationsCache(DeclarationsScopeFactory.ModuleScope(PsiModuleManager.GetInstance(solution).GetPrimaryPsiModule(module), true), true).GetTypeElementByCLRName(_spec.GetType().FullName);
            }
        }