if (single != null) { IJavaElement[] candidates= OpenTypeHierarchyUtil.getCandidates(single); if (candidates != null && candidates.length > 0) { return candidates[0]; } }
if (single == null) return null; IJavaElement[] candidates= OpenTypeHierarchyUtil.getCandidates(single); if (candidates != null && candidates.length > 0) return candidates[0];
	private static IJavaElement getInputElement(ISelection selection) {		Object single= SelectionUtil.getSingleElement(selection);		if (single != null) {			IJavaElement[] candidates= OpenTypeHierarchyUtil.getCandidates(single);			if (candidates != null && candidates.length > 0) {				return candidates[0];			}		}		return null;	}