boolean (@NotNull PyTestConfiguration configuration, @NotNull String version) { try { var packages = PyPackageManager.getInstance(configuration.getSdk()).refreshAndGetPackages(false); return PyPsiPackageUtil.findPackage(packages, "pytest").matches(PyRequirementParser.fromLine("pytest>=" + version)); } catch (ExecutionException e) { throw new RuntimeException(e); } }