boolean (@NotNull PyExpression qualifier) { for (PsiElement element : PyUtil.multiResolveTopPriority(qualifier, myResolveContext)) { if (element == myFunction.getContainingClass()) { return true; } } return false; }