code: public static void addImports(ASTRewrite rewrite, CompilationUnit compilationUnit, SortedSet<ImportDeclaration> imports) {
          requireNonNull(rewrite, "ast-rewrite");
          requireNonNull(compilationUnit, "compilation-unit");
          requireNonNull(imports, "imports");
          ListRewrite importRewrite = rewrite.getListRewrite(compilationUnit, CompilationUnit.IMPORTS_PROPERTY);
          addImports(importRewrite, imports.comparator(), imports.iterator());
      }
docs: Adds <CODE>ImportDeclaration</CODE>s to the list of imports in the
  specified <CODE>CompilationUnit</CODE>. If an import already exists, the
  import will not be inserted. The imports are inserted in an ordered way.
  The <CODE>Comparator</CODE> of the <CODE>SortedSet</CODE> is used to sort
  the imports.
  
  @param rewrite
  the <CODE>ASTRewrite</CODE>, that stores the edits.
  @param compilationUnit
  the <CODE>CompilationUnit</CODE>.
  @param imports
  the new <CODE>ImportDeclaration</CODE>s to add.