String (@NotNull PyFunction function, @NotNull PyCallExpression call, @NotNull TypeEvalContext context) { final Map<PyExpression, PyCallableParameter> arguments = PyCallExpressionHelper.mapArguments(call, function, context).getMappedParameters(); for (Map.Entry<PyExpression, PyCallableParameter> entry : arguments.entrySet()) { if ("mode".equals(entry.getValue().getName())) { PyExpression argument = entry.getKey(); if (argument instanceof PyKeywordArgument) { argument = ((PyKeywordArgument)argument).getValueExpression(); } if (argument instanceof PyStringLiteralExpression) { return ((PyStringLiteralExpression)argument).getStringValue(); } break; } } return "r"; }