code: public static CmsModuleDependencyWidget create(CmsModuleDependency dep) {
  
          CmsModuleDependencyWidget result = new CmsModuleDependencyWidget();
          if (dep != null) {
              result.m_moduleSelect.setValue(dep.getName());
              result.m_version.setValue(dep.getVersion().toString());
          }
          return result;
      }
docs: Creates a new widget instance for the given module dependency.<p>
  
  @param dep the module dependency
  @return the new widget