private static boolean isEmpty(RegExpBranch[] branches) {
    return !ContainerUtil.exists(branches, branch -> branch.getAtoms().length > 0);
  }
private static boolean isEmpty(RegExpBranch[] branches)