boolean (@Nullable PyCallable resolvedCallee) { if (PyUtil.isInitOrNewMethod(resolvedCallee)) return true; if (resolvedCallee instanceof PyFunction function) { return PyNames.CALL.equals(function.getName()) && function.getContainingClass() != null; } return false; }