void (@NotNull PsiElement element, @NotNull String newName, boolean searchInComments, boolean searchTextOccurrences) { PsiElement substitution = RenamePsiElementProcessor.forElement(element).substituteElementToRename(element, editor); if (substitution == null) return; new RenameProcessor(getProject(), substitution, newName, searchInComments, searchTextOccurrences).run(); }