code: public static boolean isAutoGenerateEnabledParameters(Object[] args) {
          if (args == null || args.length != 2 || args[1] == null) {
              return false;
          }
  
          Object arg = args[1];
          if (arg instanceof Integer) {
              //  for method(String sql, int autoGeneratedKeys)
              return (Integer) arg == Statement.RETURN_GENERATED_KEYS;
          } else if (arg instanceof int[]) {
              // for method(String sql, int columnIndexes[])
              return ((int[]) arg).length != 0;
          } else if (arg instanceof String[]) {
              // for method(String sql, String columnNames[])
              return ((String[]) arg).length != 0;
          }
  
          return false;
      }
  
  }
docs: Whether given method arguments intend to enable auto-generated keys.
  
  @param args method parameters for methods that can enable auto-generated keys.
  @return true if method params indicate to enable auto-generated keys
  @see #isMethodToRetrieveGeneratedKeys(Method)