void (@Nls StringBuilder buffer, PsiField field, PsiClass parentClass, String newLine) { if (parentClass != null && field instanceof PsiEnumConstant) { PsiField[] fields = parentClass.getFields(); int idx = ArrayUtilRt.find(fields, field); if (idx >= 0) { buffer.append(newLine); buffer.append(DocumentationMarkup.GRAYED_START); buffer.append("// "); buffer.append(JavaBundle.message("enum.constant.ordinal")); buffer.append(idx); buffer.append(DocumentationMarkup.GRAYED_END); } } }