{
        String key = name.replace("_", "").toUpperCase();
        int index = names.indexOf(key);
        if (index != -1)
        {
          if (diagnostics == null)
          {
           return false;
          }
          else
          {
            result = false;
            EEnumLiteral otherEEnumLiteral = eLiterals.get(index);
            String otherName = otherEEnumLiteral.getName();
            diagnostics.add
              (createDiagnostic
                (name.equals(otherName) ? Diagnostic.ERROR : Diagnostic.WARNING,
                 DIAGNOSTIC_SOURCE,
                 UNIQUE_ENUMERATOR_NAMES,
                 name.equals(otherName) ? "_UI_EEnumUniqueEnumeratorNames_diagnostic" : "_UI_EEnumDissimilarEnumeratorNames_diagnostic",
                 name.equals(otherName) ? new Object[] { name } : new Object[] { name, otherName },
                 new Object[] { eEnum, eEnumLiteral, otherEEnumLiteral },
                 context));
          }
        }
        names.add(key);
      }