void (@NotNull PsiComment node) { boolean insideFStringFragment = PsiTreeUtil.getParentOfType(node, PyFStringFragment.class) != null; if (insideFStringFragment) { registerForAllMatchingVersions(level -> level.isOlderThan(LanguageLevel.PYTHON312) && registerForLanguageLevel(level), PyPsiBundle.message("INSP.compatibility.feature.line.comments.in.f-strings"), node); } }