<BUG>return (T) ((IAdaptable) object).getAdapter(adapterType);return null;</BUG><CONTEXT>if (object == null)return null;if (adapterType.isInstance(object))return (T) object;if (object instanceof IAdaptable)<extra_id_0>}public static Shell getDefaultParentShell() {return PlatformUI.getWorkbench().getModalDialogShellProvider().getShell();</CONTEXT>
return ((IAdaptable) object).getAdapter(adapterType);