private static boolean isAllowed(Anchor anchor) {
      if (ExperimentalUI.isNewUI()) {
        return anchor != Anchor.TopLeft && anchor != Anchor.TopRight;
      }

      return true;
    }
private static boolean isAllowed(Anchor anchor)