@Override
  public @Nullable Function<? super @NotNull FileEditor, ? extends @Nullable JComponent> collectNotificationData(@NotNull Project project,
                                                                                                                 @NotNull VirtualFile file) {
    return fileEditor -> {
      if (ThemeJsonUtil.isThemeFilename(file.getName())) {
        JBColor bg = JBColor.lazy(() -> ExperimentalUI.isNewUI()
                                          ? EditorColorsManager.getInstance().getGlobalScheme().getDefaultBackground()
                                          : JBColor.PanelBackground);
        EditorNotificationPanel panel = new EditorNotificationPanel(bg);
        panel.removeAll();
        panel.setBorder(null);
        DefaultActionGroup group = (DefaultActionGroup)ActionManager.getInstance().getAction("DevKit.ThemeEditorToolbar");
        ActionToolbar actionToolbar = ActionManager.getInstance().createActionToolbar("ThemeEditor", group, true);
        actionToolbar.setTargetComponent(panel);
        JComponent toolbarComponent = actionToolbar.getComponent();
        toolbarComponent.setBackground(bg);
        panel.add(toolbarComponent);
        DataManager.registerDataProvider(panel, dataId -> CommonDataKeys.VIRTUAL_FILE.is(dataId) ? fileEditor.getFile() : null);
        return panel;
      }
      return null;
    };
  }
@Override
  public @Nullable Function<? super @NotNull FileEditor, ? extends @Nullable JComponent> collectNotificationData(@NotNull Project project,
                                                                                                                 @NotNull VirtualFile file)