public Type getType() {
      short value = (short)getValue();
      switch (value) {
        case 0x10B -> {
          return Type.PE32;
        }
        case 0x20B -> {
          return Type.PE32Plus;
        }
        default -> throw new IllegalStateException("Unsupported magic: " + Integer.toHexString(value));
      }
    }
public Type getType()