@Override
  @NotNull
  public String buildErrorString(Object... infos) {
    final boolean hasReadObject = ((Boolean)infos[0]).booleanValue();
    final boolean hasWriteObject = ((Boolean)infos[1]).booleanValue();
    final int ordinal = ClassUtils.getTypeOrdinal((PsiClass)infos[2]);
    if (hasReadObject && hasWriteObject) {
      return InspectionGadgetsBundle.message("externalizable.with.serialization.methods.problem.descriptor.both", ordinal);
    }
    else if (hasWriteObject) {
      return InspectionGadgetsBundle.message("externalizable.with.serialization.methods.problem.descriptor.write", ordinal);
    }
    else {
      return InspectionGadgetsBundle.message("externalizable.with.serialization.methods.problem.descriptor.read", ordinal);
    }
  }
@Override
  @NotNull
  public String buildErrorString(Object... infos)