PsiElement (@NotNull PsiElement context, @NotNull PyResolveContext resolveContext) { final PsiElement parent = myParent.resolve(context, resolveContext); if (!(parent instanceof PyClass)) { return null; } return ((PyClass)parent).findClassAttribute(myAttributeName, true, resolveContext.getTypeEvalContext()); }