public void invoke(@NotNull Project project, PsiExpression @NotNull [] expressions) {
    for (PsiExpression expression : expressions) {
      final PsiFile file = expression.getContainingFile();
      if (!CommonRefactoringUtil.checkReadOnlyStatus(project, file)) return;
    }
    super.invoke(project, expressions, null);
  }
public void invoke(@NotNull Project project, PsiExpression @NotNull [] expressions)