Icon () { IconManager iconManager = IconManager.getInstance(); return switch (this) { case CLASS -> iconManager.getPlatformIcon(PlatformIcons.Class); case INTERFACE -> iconManager.getPlatformIcon(PlatformIcons.Interface); case ENUM -> iconManager.getPlatformIcon(PlatformIcons.Enum); case ANNOTATION -> iconManager.getPlatformIcon(PlatformIcons.Annotation); case RECORD -> iconManager.getPlatformIcon(PlatformIcons.Record); }; }