Type (int opcode) { return switch (opcode) { case Opcodes.LLOAD, Opcodes.LSTORE -> Type.LONG_TYPE; case Opcodes.DLOAD, Opcodes.DSTORE -> Type.DOUBLE_TYPE; case Opcodes.FLOAD, Opcodes.FSTORE -> Type.FLOAT_TYPE; case Opcodes.ILOAD, Opcodes.ISTORE -> Type.INT_TYPE; default -> OBJECT_TYPE; }; }