void (@Nullable String type) { if ("info".equals(type)) { myType = NotificationType.INFORMATION; } else if ("error".equals(type)) { myType = NotificationType.ERROR; } else if ("warn".equals(type)) { myType = NotificationType.WARNING; } }