private boolean isContextValid(SelectInContext context) {
    if (myProject.isDisposed() || !myProject.isInitialized()) return false;

    VirtualFile virtualFile = context.getVirtualFile();
    boolean valid = virtualFile.isValid();
    if (SelectInProjectViewImplKt.getLOG().isDebugEnabled()) {
      SelectInProjectViewImplKt.getLOG().debug("File " + virtualFile + " is " + (valid ? "valid" : "NOT valid"));
    }
    return valid;
  }
private boolean isContextValid(SelectInContext context)