code: private static Class<?>[] getParamTypes(Context context, Object... arguments)
      {
          final Collection<Object> params = new ArrayList<>();
          params.add(context);
          params.addAll(Arrays.asList(arguments));
          return UtilReflection.getParamTypes(params.toArray());
      }
docs: Get the parameter types as array.
  
  @param context The context reference.
  @param arguments The arguments list.
  @return The arguments array.