public @InspectionMessage String createErrorMessage(String name, NamingConventionBean bean) {
    final int length = name.length();
    if (length < bean.m_minLength) {
      return InspectionsBundle.message("naming.convention.problem.descriptor.short", getElementDescription(),
                                             Integer.valueOf(length), Integer.valueOf(bean.m_minLength));
    }
    else if (bean.m_maxLength > 0 && length > bean.m_maxLength) {
      return InspectionsBundle.message("naming.convention.problem.descriptor.long", getElementDescription(),
                                             Integer.valueOf(length), Integer.valueOf(bean.m_maxLength));
    }
    return InspectionsBundle.message("naming.convention.problem.descriptor.regex.mismatch", getElementDescription(), bean.m_regex);
  }
public @InspectionMessage String createErrorMessage(String name, NamingConventionBean bean)