void (File file, final Set<? super String> usedPackages) { @NlsSafe final String name = file.getName(); myProgress.setText2(name); try { String chars = FileUtil.loadFile(file, (String)null); scanSourceFileForImportedPackages(chars, s -> usedPackages.add(myInterner.intern(s))); } catch (IOException e) { LOG.info(e); } }