Point (@NotNull Point location, boolean save) { Dimension size = !myLocateByContent ? null : myHeaderPanel.getPreferredSize(); if (size != null) location.y -= save ? -size.height : size.height; return location; }