docs: public @Nullable ScriptType getScriptType() {
          if (ScriptPattern.isP2PKH(this))
              return ScriptType.P2PKH;
          if (ScriptPattern.isP2PK(this))
              return ScriptType.P2PK;
          if (ScriptPattern.isP2SH(this))
              return ScriptType.P2SH;
          if (ScriptPattern.isP2WPKH(this))
              return ScriptType.P2WPKH;
          if (ScriptPattern.isP2WSH(this))
              return ScriptType.P2WSH;
          return null;
      }