@Override
  public @Nullable PsiElement getElementToMakeWritable(@NotNull PsiFile currentFile) {
    if (!startInWriteAction()) return null;
    if (myStartElement != null) return myStartElement.getContainingFile();
    return currentFile;
  }
@Override
  public @Nullable PsiElement getElementToMakeWritable(@NotNull PsiFile currentFile)