@Nullable ActionGroup getAltActions(long mask) {
      if (mask == 0) {
        return actions;
      }
      if (altActions == null || altActions.isEmpty()) {
        return null;
      }
      return altActions.get(mask);
    }
@Nullable ActionGroup getAltActions(long mask)