class ToggleStateAction extends ToggleAction {

  @Override
  public boolean isSelected(@NotNull AnActionEvent event) {
    View image = getImageView();
    return image != null && Ints.contains(image.getDrawableState(), myState.getIntValue());
  }

    ToggleStateAction(@NotNull State state, @NotNull DesignSurface surface);

}