VM_Class[] interfaces = collectInterfaces(klass);
VM_Class[] interfaces = klass.getAllImplementedInterfaces();
  public static void initializeDispatchStructures(VM_Class klass) {    // if klass is abstract, we'll never use the dispatching structures.    if (klass.isAbstract()) return;     VM_Class[] interfaces = collectInterfaces(klass);    if (interfaces.length != 0) {      if (VM.BuildForIMTInterfaceInvocation) {	IMTDict d = buildIMTDict(klass, interfaces);	if (VM.BuildForEmbeddedIMT) {	  populateEmbeddedIMT(klass, d);	} else {	  populateIndirectIMT(klass, d);	}      } else if (VM.DirectlyIndexedITables) {	populateITables(klass, interfaces);      }    }  }