boolean (@NotNull PyCallable callable, @NotNull List<PyCallableParameter> parameters) { final PyFunction method = callable.asMethod(); if (method != null) { return isNewMethod(method) || method.getModifier() != STATICMETHOD; } else { final PyCallableParameter first = ContainerUtil.getFirstItem(parameters); return first != null && PyNames.CANONICAL_SELF.equals(first.getName()); } }