List<String> (@NotNull Nullability nullability) { return switch (nullability) { case NOT_NULL -> Collections.singletonList(NOT_NULL); case NULLABLE -> Collections.singletonList(NULLABLE); case UNKNOWN -> List.of(NULLNESS_UNKNOWN); }; }