Java 类com.intellij.psi.SmartTypePointer 实例源码

项目:intellij-ce-playground    文件:GrClassReferenceTypePointerFactory.java   
@Nullable
@Override
public SmartTypePointer createClassTypePointer(@NotNull PsiClassType classType, @NotNull Project project) {
  if (classType instanceof GrClassReferenceType) {
    return new GrClassReferenceTypePointer(((GrClassReferenceType)classType), project);
  }

  return null;
}
项目:consulo-java    文件:PsiClassReferenceTypePointerFactory.java   
@Nullable
@Override
public SmartTypePointer createClassTypePointer(@NotNull PsiClassType classType, @NotNull Project project)
{
    if(classType instanceof PsiClassReferenceType)
    {
        return new ClassReferenceTypePointer((PsiClassReferenceType) classType, project);
    }

    return null;
}