PyExpression (@NotNull final FunctionParameter parameter) { final String parameterName = parameter.getName(); if (parameterName != null) { final PyKeywordArgument kwarg = getKeywordArgument(parameterName); if (kwarg != null) { return kwarg.getValueExpression(); } } final PyExpression[] arguments = getArguments(); final int position = parameter.getPosition(); if ((position != FunctionParameter.POSITION_NOT_SUPPORTED) && (arguments.length > position)) { final PyExpression result = arguments[position]; if (result instanceof PyKeywordArgument) { ((PyKeywordArgument)result).getValueExpression(); } else { return result; } } return null; }