Fix code to comply with more strict UnusedImport rules

* don't introduce compile import dependency in case javadoc is only user of imporated class