code: @Nullable
      public static StoredPaymentChannelServerStates getFromWallet(Wallet wallet) {
          return (StoredPaymentChannelServerStates) wallet.getExtensions().get(EXTENSION_ID);
      }
docs: Returns this extension from the given wallet, or null if no such extension was added.