String (Object... infos) { final String name = (String)infos[0]; if (name.length() < mySettingsDelegate.m_minLength) { return InspectionGadgetsBundle.message("package.naming.convention.problem.descriptor.short", name); } else if (name.length() > mySettingsDelegate.m_maxLength) { return InspectionGadgetsBundle.message("package.naming.convention.problem.descriptor.long", name); } else { return InspectionGadgetsBundle.message("package.naming.convention.problem.descriptor.regex.mismatch", name, mySettingsDelegate.m_regex); } }