boolean (@Nullable TreePath path, int mouseX) { if (path == null) return false; Rectangle bounds = getRowBounds(getRowForPath(path)); return TreeUtil.isLocationInExpandControl(this, path, mouseX, bounds.y + bounds.height / 2); }