void (@NotNull PsiElement newElement, @NotNull String oldQualifiedName) { LOG.assertTrue(newElement instanceof PsiQualifiedNamedElement || newElement instanceof PsiDirectory); descriptor.replaceScope(oldScope); }