public static boolean checkNoNameClashes(@NotNull Project project, @NotNull PsiElement element, @NotNull String name) {
    return (new PyExtractMethodValidator(element, project)).check(name) == null;
  }
public static boolean checkNoNameClashes(@NotNull Project project, @NotNull PsiElement element, @NotNull String name)