void (@NotNull PsiNameIdentifierOwner nameIdentifierOwner) { final PsiElement nameIdentifier = nameIdentifierOwner.getNameIdentifier(); if (nameIdentifier != null && ArrayUtil.contains(nameIdentifierOwner.getName(), PyNames.AWAIT, PyNames.ASYNC) && LanguageLevel.forElement(nameIdentifierOwner).isOlderThan(LanguageLevel.PYTHON37)) { registerForAllMatchingVersions(level -> level.isAtLeast(LanguageLevel.PYTHON37), PyPsiBundle.message("INSP.compatibility.feature.allow.async.and.await.as.names"), nameIdentifier, PythonUiService.getInstance().createPyRenameElementQuickFix(nameIdentifierOwner)); } }