docs: @Nullable
      public TransactionOutput getConnectedOutput() {
          if (fromTx != null) {
              return fromTx.getOutputs().get((int) index);
          } else if (connectedOutput != null) {
              return connectedOutput;
          }
          return null;
      }