SmartTypePointer (@NotNull PsiClassType classType, @NotNull Project project) { if (classType instanceof PsiClassReferenceType) { return new ClassReferenceTypePointer((PsiClassReferenceType)classType, project); } return null; }