@Override
      public void editorReleased(@NotNull EditorFactoryEvent event) {
        myActiveEditors.remove(event.getEditor());
        // mem leak after closing last editor otherwise
        if (myActiveEditors.isEmpty()) {
          EdtInvocationManager.invokeLaterIfNeeded(() -> {
            IntentionsUI intentionUI = myProject.getServiceIfCreated(IntentionsUI.class);
            if (intentionUI != null) {
              intentionUI.invalidateForEditor(event.getEditor());
            }
          });
        }
      }
@Override
      public void editorReleased(@NotNull EditorFactoryEvent event)