boolean (String chars) { ASTNode child = getNode().getFirstChildNode(); StringBuilder buf = new StringBuilder(); while (child != null) { IElementType elType = child.getElementType(); if (elType instanceof PyElementType && PyElementTypes.BINARY_OPS.contains(elType)) { buf.append(child.getText()); } child = child.getTreeNext(); } return buf.toString().equals(chars); }