Ref<PyType> (@NotNull PsiElement target, @NotNull TypeEvalContext context, @Nullable PsiElement anchor) { if (PyiUtil.isInsideStub(target)) { return null; } if (target instanceof PyTargetExpression) { final PyTargetExpression targetSkeleton = PyUserSkeletonsUtil.getUserSkeletonWithContext((PyTargetExpression)target, context); if (targetSkeleton != null) { return PyTypeUtil.notNullToRef(context.getType(targetSkeleton)); } } return null; }