PyKeywordArgument (String name) { ASTNode node = getNode().getFirstChildNode(); while (node != null) { if (node.getElementType() == PyElementTypes.KEYWORD_ARGUMENT_EXPRESSION) { PyKeywordArgument arg = (PyKeywordArgument)node.getPsi(); String keyword = arg.getKeyword(); if (keyword != null && keyword.equals(name)) return arg; } node = node.getTreeNext(); } return null; }