public static final <T> T getTarget(Class<T> type) {
		Component focus = getFocusOwner();
		T target = UIUtilities.getSelfOrAncestorOfType(focus, type);
		if (target == null) {
			RetargetableFocus retargeter = UIUtilities.getSelfOrAncestorOfType(focus, RetargetableFocus.class);
			if (retargeter != null) {
				target = UIUtilities.getSelfOrAncestorOfType(retargeter.getRetargetedFocus(), type);
			}
		}
		return target;
	}