public static <T> @NotNull List<T> createMaybeSingletonList(@Nullable T element) {
    //noinspection SSBasedInspection
    return element == null ? Collections.emptyList() : Collections.singletonList(element);
  }
public static <T> @NotNull List<T> createMaybeSingletonList(@Nullable T element)