code: private static void doCheck(SqlFragmentContainer statement, HashMap<String, ParameterDeclaration> paramMap,
                           final MethodDeclaration method)
      {
  
          SqlFragment[] fragments = statement.getChildren();
          for (SqlFragment fragment : fragments) {
  
              // if the fragment is a container check all of its children.
              if (fragment instanceof SqlFragmentContainer) {
                  doCheck((SqlFragmentContainer) fragment, paramMap, method);
  
                  // reflection fragment - make sure it can be mapped using the method's param values.
              } else if (fragment instanceof ReflectionFragment) {
                  checkReflectionFragment((ReflectionFragment) fragment, paramMap, method);
              }
          }
      }
docs: Walk the tree of children of the statement, process all children of type ReflectionFragment.
  
  @param statement The parsed statement element.
  @param paramMap The method parameters, keyed by name.
  @param method The method declaration which was annotated.