public static void rename(@NotNull PsiElement element, @NotNull Project project, PsiElement nameSuggestionContext, Editor editor, String defaultName) {
    RenamePsiElementProcessorBase processor = RenamePsiElementProcessorBase.forPsiElement(element);
    rename(element, project, nameSuggestionContext, editor, defaultName, processor);
  }
public static void rename(@NotNull PsiElement element, @NotNull Project project, PsiElement nameSuggestionContext, Editor editor, String defaultName)