int (Point point) { Component component = myTabs.getComponentAt(point); if (component instanceof TabLabel label && lastSingRowLayout != null) { return lastSingRowLayout.myVisibleInfos.indexOf(label.getInfo()); } return -1; }