public static void checkIndexAndLog(@NotNull Class<?> loggingClass, int index, int size) {
    checkIndexAndLog(loggingClass, index, size, "index");
  }
public static void checkIndexAndLog(@NotNull Class<?> loggingClass, int index, int size)