boolean (@NotNull ASTNode node) { if (node.getElementType() == PyElementTypes.CALL_EXPRESSION) { final PyCallExpression callExpression = (PyCallExpression)node.getPsi(); final PyArgumentList argumentList = callExpression.getArgumentList(); if (argumentList == null || argumentList.getClosingParen() == null) { return true; } } return false; }