ReflectiveType (@Nullable PsiClass psiClass, boolean isExact) { if (psiClass != null) { final PsiElementFactory factory = JavaPsiFacade.getElementFactory(psiClass.getProject()); return new ReflectiveType(factory.createType(psiClass), isExact); } return null; }