void (@NotNull CompletionParameters parameters, @NotNull ProcessingContext context, @NotNull CompletionResultSet result) { PsiElement position = parameters.getOriginalPosition(); PyClass containingClass = PsiTreeUtil.getParentOfType(position, PyClass.class); if (containingClass == null) { return; } for (PyTargetExpression expr : getSuperClassAttributes(containingClass)) { result.addElement(LookupElementBuilder.createWithSmartPointer(expr.getName() + " = ", expr)); } }