String (Object... infos) { final boolean hasReadObject = ((Boolean)infos[0]).booleanValue(); final boolean hasWriteObject = ((Boolean)infos[1]).booleanValue(); final PsiClass aClass = (PsiClass)infos[2]; final int ordinal = ClassUtils.getTypeOrdinal(aClass); if (hasReadObject && hasWriteObject) { return InspectionGadgetsBundle.message("non.serializable.class.with.readwriteobject.problem.descriptor.both", ordinal); } else if (hasWriteObject) { return InspectionGadgetsBundle.message("non.serializable.class.with.readwriteobject.problem.descriptor.write", ordinal); } else { return InspectionGadgetsBundle.message("non.serializable.class.with.readwriteobject.problem.descriptor.read", ordinal); } }