private static void performSizeAction(@NotNull AnActionEvent e, boolean horizontal, boolean positive) {
    @Nullable Component component = e.getData(PlatformCoreDataKeys.CONTEXT_COMPONENT);
    Window window = ComponentUtil.getWindow(component);
    if (window == null) return;
    Dimension size = getPreferredDelta();
    int baseValue = horizontal ? size.width : size.height;
    int inc = baseValue *
              Registry.intValue(horizontal ? "ide.windowSystem.hScrollChars" : "ide.windowSystem.vScrollChars");
    if (!positive) {
      inc = -inc;
    }

    Rectangle bounds = window.getBounds();
    if (horizontal) {
      bounds.width += inc;
    }
    else {
      bounds.height += inc;
    }
    window.setBounds(bounds);
  }
private static void performSizeAction(@NotNull AnActionEvent e, boolean horizontal, boolean positive)