void (@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); }