@Nullable
  static ShTextRenameRefactoring create(@NotNull Editor editor,
                                        @NotNull Project project,
                                        @NotNull String occurrenceText,
                                        @NotNull Collection<TextRange> occurrenceRanges,
                                        @NotNull TextRange occurrenceRangeAtCaret) {
    PsiFile psiFile = PsiDocumentManager.getInstance(project).getPsiFile(editor.getDocument());
    if (psiFile != null) {
      return new ShTextRenameRefactoring(editor, project, psiFile, occurrenceText, occurrenceRanges, occurrenceRangeAtCaret);
    }
    return null;
  }
@Nullable
  static ShTextRenameRefactoring create(@NotNull Editor editor,
                                        @NotNull Project project,
                                        @NotNull String occurrenceText,
                                        @NotNull Collection<TextRange> occurrenceRanges,
                                        @NotNull TextRange occurrenceRangeAtCaret)