((InternalStaticMethodRef) staticMethodRef).setPadding(buf);
((InternalStaticMethodRef) staticMethodRef).setOffset(in.readShort());
} else {
//case of an externalStaticMethodRef
staticMethodRef = new ExternalStaticMethodRef();
((ExternalStaticMethodRef) staticMethodRef).setPackageToken(buf);
((ExternalStaticMethodRef) staticMethodRef).setClassToken(in.readByte());
((ExternalStaticMethodRef) staticMethodRef).setToken(in.readByte());
}