boolean () { List<TabInfo> infos = myTabs.getVisibleInfos(); for (int ind = 0; ind < infos.size() - 1; ind++) { TabLabel cur = myTabs.getInfoToLabel().get(infos.get(ind)); if (cur == this) { TabLabel next = myTabs.getInfoToLabel().get(infos.get(ind + 1)); return cur.getY() != next.getY(); } } // can be empty in case of dragging tab label return !infos.isEmpty() && infos.get(infos.size() - 1) == myInfo; }