boolean (Point location, Dimension size) { if (location == null) { return size != null; } if (ScreenUtil.isVisible(location)) { return true; } if (size == null) { return false; } return ScreenUtil.isVisible(new Rectangle(location, size)); }