code: protected LightweightTypeReference doGetDeclaredType(JvmIdentifiableElement identifiable) {
  		if (identifiable instanceof JvmType) {
  			ITypeReferenceOwner owner = getReferenceOwner();
  			LightweightTypeReference result = owner.toLightweightTypeReference((JvmType) identifiable);
  			return result;
  		}
  		JvmTypeReference type = getDeclaredType(identifiable);
  		if (type != null) {
  			ITypeReferenceOwner owner = getReferenceOwner();
  			LightweightTypeReference result = owner.toLightweightTypeReference(type);
  			return result;
  		}
  		return null;
  	}
docs: /* @Nullable