@Override
  protected void checkOccurrences(PsiElement @NotNull [] occurrences) {
    if (hasLhs(occurrences)) {
      throw new GrRefactoringError(GroovyRefactoringBundle.message("selected.variable.is.used.for.write"));
    }
  }
@Override
  protected void checkOccurrences(PsiElement @NotNull [] occurrences)