void (DomExtension extension, PsiField field, PsiType fieldType, String propertyName) { if (PsiUtil.findAnnotation(NonNls.class, field) != null) { extension.addCustomAnnotation(MyNoSpellchecking.INSTANCE); } else if (!fieldType.equalsToText(CommonClassNames.JAVA_LANG_STRING)) { final PsiClass fieldPsiClass = PsiTypesUtil.getPsiClass(fieldType); if (fieldPsiClass != null && fieldPsiClass.isEnum()) { extension.setConverter(createEnumConverter(fieldPsiClass)); return; } } if ("language".equals(propertyName) || StringUtil.endsWith(propertyName, "Language")) // NON-NLS { extension.setConverter(LANGUAGE_CONVERTER); } else if ("action".equals(propertyName)) { extension.setConverter(ACTION_CONVERTER); } }