private boolean isLastInRun( int tabIndex ) {
		int run = getRunForTab( _tabPane.getTabCount(), tabIndex );
		return lastTabInRun( _tabPane.getTabCount(), run ) == tabIndex;
	}
Actually does nearly the same as super.paintContentBorder() but
  - not invoking paintContentBorder*Edge() methods
  - repaint selection
flatlaf-jide-oss/src/main/java/com/formdev/flatlaf/jideoss/ui/FlatJideTabbedPaneUI.java