docs: public static void infoAndDebug(Logger log, String methodName,
              Object... params) {
          if (!log.isInfoEnabled())
              return;
          int length = params.length;
          Object[] newParams = new Object[length];
          boolean hasCollection = false;
          for (int i = 0; i < length; i++) {
              if (params[i] instanceof Collection) {
                  newParams[i] = (((Collection<?>) params[i]).size());
                  hasCollection = true;
              } else
                  newParams[i] = params[i];
          }
          if (hasCollection)
              log.info(buildMethodLogString(methodName, newParams));
          log.debug(buildMethodLogString(methodName, params));
      }