int () { File versionFile = PythonHelpersLocator.getHelperFile("generator3/version.txt"); try (Reader reader = new InputStreamReader(new FileInputStream(versionFile), StandardCharsets.UTF_8)) { return PySkeletonHeader.fromVersionString(StreamUtil.readText(reader).trim()); } catch (IOException e) { throw new AssertionError("Failed to read generator version from " + versionFile); } }