StaticMethodRef staticMethodRef;
Byte buf = in.readByte();
//if the most significant bit is 0 it's an internalStaticMethoddRef
if ((buf % (Math.pow(2, 16) - 1)) == 0) {
staticMethodRef = new InternalStaticMethodRef();
((InternalStaticMethodRef) staticMethodRef).setPadding(buf);
((InternalStaticMethodRef) staticMethodRef).setOffset(in.readShort());
} else {
//case of an externalStaticMethodRef