void (@NotNull final PyReferenceExpression element) { final PyExpression qualifier = element.getQualifier(); if (qualifier == null) return; final PsiReference reference = qualifier.getReference(); if (reference == null) return; final PsiElement resolved = reference.resolve(); if (resolved instanceof PyClass) { //call with first instance argument A.m(A()) updateArgumentList(element); } }