* clazz or adaptable to it through {@link IAdaptable}.</li>
* </ul>
*
- *
- *
* @param selection
* @param key
* @param clazz desired class of the objects to look for in the selection
* @return a single objects matching the search criteria. If there are no or
* several matches, <code>null</code> is returned
*/
- @SuppressWarnings("unchecked")
public static <T> T getSinglePossibleKey(Object object, Key key, Class<T> clazz) {
return getSinglePossibleKey(object, key, clazz, true);
}