code: public String createImportDeclaration(String lineDelimiter) {
          StringBuilder result = new StringBuilder();
          for (TypeName importName : getImports()) {
              result.append(lineDelimiter + "import " + importName + ";");
          }
          return result.toString();
      }
docs: Returns a string with the import declarations to add to the class,
  using the specified line separator to separate import lines.