private boolean hasTypedParameterMatch(Command command, Object object) throws CommandException { IParameter[] params = command.getParameters(); if (params != null) { for (IParameter param : params) { ParameterType parameterType = command.getParameterType(param.getId()); if (parameterType != null) { if (parameterType.isCompatible(object)) return true; } } } return false; }