PyExpression (@NotNull PyCallExpression call, @Nullable PyCallable resolvedCallee) { if (resolvedCallee instanceof PyFunction function) { if (!PyNames.NEW.equals(function.getName()) && function.getModifier() == PyFunction.Modifier.STATICMETHOD) { return null; } } final PyExpression callee = call.getCallee(); if (callee != null && isImplicitlyInvokedMethod(resolvedCallee) && !Objects.equals(resolvedCallee.getName(), callee.getName())) { return callee; } if (callee instanceof PyQualifiedExpression) { return ((PyQualifiedExpression)callee).getQualifier(); } return null; }