private void populateInspectionWidgetActionsFromExtensions() {
    InspectionWidgetActionProvider.EP_NAME.getExtensionList().
      forEach(extension -> {
        AnAction action = extension.createAction(myEditor);
        if (action != null) {
          extensionActions.put(extension, action);
          addInspectionWidgetAction(action, null);
        }
      });

    InspectionWidgetActionProvider.EP_NAME.addExtensionPointListener(new ExtensionPointListener<>() {
      @Override
      public void extensionAdded(@NotNull InspectionWidgetActionProvider extension, @NotNull PluginDescriptor pluginDescriptor) {
        ApplicationManager.getApplication().invokeLater(() -> {
          AnAction action = extension.createAction(myEditor);
          if (action != null) {
            extensionActions.put(extension, action);
            addInspectionWidgetAction(action, null);
          }
        });
      }

      @Override
      public void extensionRemoved(@NotNull InspectionWidgetActionProvider extension, @NotNull PluginDescriptor pluginDescriptor) {
        ApplicationManager.getApplication().invokeLater(() -> {
          AnAction action = extensionActions.remove(extension);
          if (action != null) {
            removeInspectionWidgetAction(action);
          }
        });
      }
    }, resourcesDisposable);
  }
private void populateInspectionWidgetActionsFromExtensions()