private static boolean checkAssignable(Class<?> parameterType, Object arg) {
    return arg == null || parameterType.isAssignableFrom(arg.getClass());
  }
Check if the given constructor parameter type is assignable from the provided argument object.
@param parameterType the {@link Class} of the constructor parameter.
@param arg the argument to test.
@return {@code true} if it is assignable. Note: this will return true if {@code arg} is {@code null}.
ambry-utils/src/main/java/com/github/ambry/utils/Utils.java