class LuceneVersionChecks {

    static boolean isUpgradeRequired(@Nullable String versionStr) {<FILL_FUNCTION_BODY>}
}

        if (versionStr == null || versionStr.isEmpty()) {
            return false;
        }
        try {
            return !Version.parse(versionStr).onOrAfter(Version.LATEST);
        } catch (ParseException e) {
            throw new IllegalArgumentException("'" + versionStr + "' is not a valid Lucene version");
        }
    
<no_super_class>