code: private static String checkNotEmpty(String v, String name) {
      Preconditions.checkNotNull(v, name);
      Preconditions.checkArgument(!v.isEmpty(), "%s cannot be empty", name);
      return v;
    }
docs: Verify that the {@code v} is not null or an empty string.