code: public void configureFrom(@Nullable DatabaseConnection connection) {
          if (connection == null) {
              return;
          }
          minUsernameLength = connection.getMinUsernameLength();
          maxUsernameLength = connection.getMaxUsernameLength();
          usernameRequired = connection.requiresUsername();
          isCustomDatabase = connection.isCustomDatabase();
      }
docs: Extract the required values from this Database connection to use later in this widget.
  
  @param connection used with this widget