boolean (RegExpBranch branch) { if (branch == null) return false; if (branch.getParent() instanceof RegExpConditional) { RegExpGroup groupCondition = ObjectUtils.tryCast(((RegExpConditional)branch.getParent()).getCondition(), RegExpGroup.class); return groupCondition != null && RegExpGroupImpl.isPcreConditionalGroup(groupCondition.getNode()); } return false; }