Icon (@NotNull ErrorTreeElementKind kind) { return switch (kind) { case INFO -> AllIcons.General.Information; case ERROR -> AllIcons.General.Error; case WARNING -> AllIcons.General.Warning; case NOTE -> AllIcons.General.Tip; case GENERIC -> ICON_16; }; }