private static Insets getInsets() {
      Insets result = getInsideFrameInsets();
      add(result, getFrameInsets());
      add(result, getOutsideFrameInsets());
      return result;
    }
private static Insets getInsets()