docs: function isSameFlags(def1, def2){
          for(var flag in def1.flags)  {
              if (flag == 'isReadonly') continue;
              if (flag == 'isOverride') continue;
              if (def1.flags.hasOwnProperty(flag) && (!!def1.flags[flag] != !!def2.flags[flag]))
                  return false;
          }
          return true;
      }