@Override
  public void editorCreated(@NotNull EditorFactoryEvent event) {
    Project project = event.getEditor().getProject();
    if (project != null) {
      project.getService(ImageOrColorPreviewService.class).attach(event.getEditor());
    }
  }
@Override
  public void editorCreated(@NotNull EditorFactoryEvent event)