/** Method that calculates bit set (flags) of all features that are enabled by default. */
 public static int collectDefaults() {
   int flags = 0;
   for (Feature f : values()) {
     if (f.enabledByDefault()) {
       flags |= f.getMask();
     }
   }
   return flags;
 }