boolean (@Nullable PsiElement elementInCall, @NotNull PyFunction callee) { // special case hack to avoid the need of patching generator3.py final PyClass containingClass = callee.getContainingClass(); if (containingClass != null && PyNames.PROPERTY.equals(containingClass.getName()) && PyBuiltinCache.getInstance(elementInCall).isBuiltin(containingClass)) { return true; } if (callee.getParameterList().getParameters().length > 1) { return false; } final PyDecorator decorator = PsiTreeUtil.getParentOfType(elementInCall, PyDecorator.class); if (decorator == null) { return false; } return PsiTreeUtil.isAncestor(decorator.getCallee(), elementInCall, false); }