ToolWindowAnchor () { return switch (this) { case LeftTop, LeftBottom -> ToolWindowAnchor.LEFT; case BottomLeft, BottomRight -> ToolWindowAnchor.BOTTOM; case RightBottom, RightTop -> ToolWindowAnchor.RIGHT; default -> ToolWindowAnchor.TOP; }; }