void (@NotNull PresentationData data) { PsiField field = Objects.requireNonNull(getValue()); String name; try { name = PsiFormatUtil.formatVariable(field, PsiFormatUtilBase.SHOW_NAME | PsiFormatUtilBase.SHOW_TYPE | PsiFormatUtilBase.TYPE_AFTER, PsiSubstitutor.EMPTY); } catch (IndexNotReadyException e) { name = field.getName(); } int c = name.indexOf('\n'); if (c > -1) { name = name.substring(0, c - 1); } data.setPresentableText(name); }