@Override
  public void checkDelete() throws IncorrectOperationException {
    if (!getViewProvider().isEventSystemEnabled()) {
      if (PsiFileImplUtil.canDeleteNonPhysicalFile(this)) return;
      throw new IncorrectOperationException();
    }
    CheckUtil.checkWritable(this);
  }
@Override
  public void checkDelete()