public static boolean isValidNewName(@NotNull String name, @NotNull PsiElement scopeAnchor) {
    return !(IntroduceValidator.isDefinedInScope(name, scopeAnchor) || PyNames.isReserved(name));
  }
public static boolean isValidNewName(@NotNull String name, @NotNull PsiElement scopeAnchor)