public byte[] patchClass(InputStream classStream) {
    try {
      final ClassReader reader = new FailSafeClassReader(classStream);
      return patchClass(reader);
    }
    catch (IOException e) {
      myErrors.add(new FormErrorInfo(null, "Error reading class data stream"));
      return null;
    }
  }
public byte[] patchClass(InputStream classStream)