if (MODE_PHP == mode) {
if (lastSelection instanceof IStructuredSelection
&& lastSelection instanceof TextSelection) {
IEditorPart activeEditor = PHPUiPlugin.getActiveEditor();
if (activeEditor instanceof PHPStructuredEditor) {
ISourceReference computedSourceReference = ((PHPStructuredEditor) activeEditor)
.computeHighlightRangeSourceReference();
if (computedSourceReference != null) {
Object parent = ((PHPOutlineContentProvider) contentProvider)
.getParent(computedSourceReference);
for (Object element : ((PHPOutlineContentProvider) contentProvider)