Correct documentation of `Widget` constructor and `extractElementsAndMethods` method