RegExpNumber () { final ASTNode[] nodes = getNode().getChildren(TOKENS); if (nodes.length == 0) { return null; } final ASTNode node = nodes[nodes.length - 1]; if (node.getElementType() != RegExpElementTypes.NUMBER) { return null; } return (RegExpNumber)node.getPsi(); }