code: public static LegacyAddress fromPubKeyHash(NetworkParameters params, byte[] hash160) throws AddressFormatException {
          return new LegacyAddress(params, false, hash160);
      }
docs: Construct a {@link LegacyAddress} that represents the given pubkey hash. The resulting address will be a P2PKH type of
  address.
  
  @param params
  network this address is valid for
  @param hash160
  20-byte pubkey hash
  @return constructed address