private Project guessProject(@NotNull VirtualFile virtualFile) {
    if (!FileEditorManager.getInstance(myProject).getAllEditorList(virtualFile).isEmpty()) {
      // if at least one editor in myProject frame has opened this file, then we can assume this file does belong to the myProject
      return myProject;
    }
    return ProjectUtil.guessProjectForFile(virtualFile);
  }
private Project guessProject(@NotNull VirtualFile virtualFile)