Set<String> () { final Logger log = Logger.getInstance(PyStdlibUtil.class.getName()); final String helperPath = PythonHelpersLocator.getHelperPath("/tools/stdlib_packages.txt"); try (BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(helperPath), StandardCharsets.UTF_8))) { return reader.lines().collect(Collectors.toSet()); } catch (IOException e) { log.error("Cannot read list of standard library packages: " + e.getMessage()); } return null; }