boolean (PsiElement element) { if (element instanceof PyParameter) { return true; } if (element instanceof PyTargetExpression target) { return !target.isQualified() && ScopeUtil.getScopeOwner(target) instanceof PyFunction; } return false; }