// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.codeInsight.documentation.render;

import com.intellij.idea.ActionsBundle;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.actionSystem.ToggleAction;
import com.intellij.openapi.editor.ex.EditorSettingsExternalizable;
import com.intellij.openapi.project.DumbAware;
import org.jetbrains.annotations.NotNull;

public class ToggleRenderAllDocs extends ToggleAction implements DumbAware {

  @Override
  public boolean isSelected(@NotNull AnActionEvent e) {
    return EditorSettingsExternalizable.getInstance().isDocCommentRenderingEnabled();
  }

  @Override
  public void setSelected(@NotNull AnActionEvent e, boolean state) {
    EditorSettingsExternalizable.getInstance().setDocCommentRenderingEnabled(state);
    DocRenderManager.resetAllEditorsToDefaultState();
  }
}

@@ -194,48 +194,8 @@
 r;%0A%0A
-import com.intellij.idea.ActionsBundle;%0A
 impo
@@ -536,17 +536,16 @@
 Aware %7B%0A
-%0A
   @Overr

remove unused import #IDEA-245688