int (PyCallExpression call, PsiElement argument) { final PyExpression[] args = call.getArguments(); for (int i = 0; i < args.length; i++) { PyExpression expression = args[i]; if (expression instanceof PyKeywordArgument) { expression = ((PyKeywordArgument)expression).getValueExpression(); } expression = flattenParens(expression); if (expression == argument) { return i; } } return -1; }