void (@NotNull Container parent) { int y = 0; int width = parent.getWidth(); int totalHeight = parent.getHeight(); Dimension titleSize = getPreferredSize(myTitle); Dimension topSize = getPreferredSize(myTopBreadcrumbs); Dimension bottomSize = getPreferredSize(myBottomBreadcrumbs); int bottomY = totalHeight - bottomSize.height; myTitle.setBounds(0, y, width, titleSize.height); y += titleSize.height; if (titleSize.height != 0) y += DiffUtil.TITLE_GAP.get(); myTopBreadcrumbs.setBounds(0, y, width, topSize.height); y += topSize.height; myContent.setBounds(0, y, width, Math.max(0, bottomY - y)); myBottomBreadcrumbs.setBounds(0, bottomY, width, bottomSize.height); }