RegExpOptions () { final ASTNode[] nodes = getNode().getChildren(TokenSet.create(RegExpElementTypes.OPTIONS)); for (ASTNode node : nodes) { if (node.textContains('-')) { return (RegExpOptions)node.getPsi(); } } return null; }