code: public void ensureImport(Class<?> cls) {
          if (currentImports.contains(cls.getName()) == false) {
              newImports.add(cls.getName());
          }
      }
docs: Ensures an import is present.
  @param cls  the class, not null