docs: function (widgetName, beanDef) {
              var states = beanDef.$properties.states;
              if (states == null) {
                  return null;
              }
              var writer = new ariaUtilsFunctionWriter(["state", "stdState", "normal", "stdNormal"]);
              ariaUtilsInheritanceNormalization.writeInheritanceNormalization({
                  writer : writer,
                  beanDef : states.$properties.normal,
                  varToNormalize : "state",
                  parentVars : ["stdState", "normal", "stdNormal"],
                  excludes : {
                      "frame" : true
                  }
              });
              var res = writer.createFunction();
              writer.$dispose();
              return res;
          }