int (@NotNull Inlay inlay) { Font font = getFont(inlay.getEditor()); String text; if (isErrorMessage()) { text = myPresentation.getTexts().get(0); } else { text = myPresentation.toString() + NAME_VALUE_SEPARATION; } return getFontMetrics(font, inlay.getEditor()).stringWidth(text + INDENT); }