public static void ensureEditorSizeIsUpToDate(@NotNull List<? extends Editor> editors) {
    Set<Window> windows = ContainerUtil.map2SetNotNull(editors, editor -> ComponentUtil.getWindow(editor.getComponent()));
    for (Window window : windows) {
      window.validate();
    }
  }
public static void ensureEditorSizeIsUpToDate(@NotNull List<? extends Editor> editors)