@Override
      public void projectClosing(@NotNull Project project) {
        if (myRecentData != null && myRecentData.project == project) {
          myRecentData = null;
        }

        Transferable[] contents = myCopyPasteManager.getAllContents();
        for (int i = contents.length - 1; i >= 0; i--) {
          Transferable t = contents[i];
          if (t instanceof MyTransferable) {
            MyData myData = ((MyTransferable)t).myDataProxy;
            if (myData.project == project) {
              myCopyPasteManager.removeContent(t);
            }
          }
        }
      }
@Override
      public void projectClosing(@NotNull Project project)