result= determineInitValuesFrom((IJavaElement)o);
return determineInitValuesFrom((IJavaElement)o);
	private SearchPatternData trySelection(ISelection selection) {		SearchPatternData result= null;		if (selection == null)			return result;		Object o= null;		if (selection instanceof IStructuredSelection)			o= ((IStructuredSelection)selection).getFirstElement();		if (o instanceof IJavaElement) {			result= determineInitValuesFrom((IJavaElement)o);		} else if (o instanceof ISearchResultViewEntry) {			IJavaElement element= getJavaElement(((ISearchResultViewEntry)o).getSelectedMarker());			result= determineInitValuesFrom(element);		} else if (o instanceof IAdaptable) {			IJavaElement element= (IJavaElement)((IAdaptable)o).getAdapter(IJavaElement.class);			if (element != null) {				result= determineInitValuesFrom(element);			} else {				IWorkbenchAdapter adapter= (IWorkbenchAdapter)((IAdaptable)o).getAdapter(IWorkbenchAdapter.class);				result= new SearchPatternData(TYPE, REFERENCES, adapter.getLabel(o), null);			}		}		return result;	}