EventLogConfigVersions (@NotNull String productVersion) { if (versions == null || versions.isEmpty()) { return null; } return versions.stream() .filter(v -> v.majorBuildVersionBorders != null && v.majorBuildVersionBorders.accept(productVersion)) .findFirst().orElse(null); }