void (@NotNull Element element) { String icon = ICON_DEFAULT; IconManager iconManager = IconManager.getInstance(); if (myIcon == iconManager.getPlatformIcon(PlatformIcons.TodoQuestion)) { icon = ICON_QUESTION; } else if (myIcon == iconManager.getPlatformIcon(PlatformIcons.TodoImportant)) { icon = ICON_IMPORTANT; } if (!icon.equals(ICON_DEFAULT)) { element.setAttribute(ATTRIBUTE_ICON, icon); } if (shouldUseCustomTodoColor()) { myTextAttributes.writeExternal(element); element.setAttribute(USE_CUSTOM_COLORS_ATT, "true"); } }