code: public static <T> T selectValue(T defaultValue, T... overrides) {
          for (T override : overrides) {
              if (override != null) {
                  return override;
              }
          }
          return defaultValue;
      }
docs: Determine a value from given options.
  
  @param defaultValue
  The default (i.e. fallback) value.
  @param overrides
  The option that override the default value, the first non-null value will be accepted.
  @param <T>
  The value type.
  @return The value.