&& realType != null
&& declaringType.getElementName().equals(
node.getName())) {
if (realType.getParent() instanceof IType) {
IType ns = (IType) realType.getParent();
instanceType = new PHPThisClassType(
ns.getElementName(),
realType.getElementName(), realType);
} else {
instanceType = new PHPThisClassType(
realType.getElementName(), realType);
}
} else {
instanceType = new PHPTraitType(node.getName());
}