String (Object... infos) { final String name = (String)infos[0]; final int length = name.length(); if (length < getMinLength()) { return InspectionGadgetsBundle.message("naming.convention.problem.descriptor.short", getElementDescription(), Integer.valueOf(length), Integer.valueOf(getMinLength())); } else if (getMaxLength() > 0 && length > getMaxLength()) { return InspectionGadgetsBundle.message("naming.convention.problem.descriptor.long", getElementDescription(), Integer.valueOf(length), Integer.valueOf(getMaxLength())); } return InspectionGadgetsBundle.message("naming.convention.problem.descriptor.regex.mismatch", getElementDescription(), getRegex()); }