create findImports method and make it private