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