Predicate UselessUpcast::getMaximumArguments

Gets the maximum number of arguments allowed to call c, if any.

int getMaximumArguments(Callable c)