PsiClassType (@NotNull String fqName, @NotNull PsiElement context) { final Project project = context.getProject(); final PsiElementFactory factory = JavaPsiFacade.getElementFactory(project); final GlobalSearchScope scope = context.getResolveScope(); return factory.createTypeByFQClassName(fqName, scope); }