if  ``enclosingType`` is not a ``IJavaElement.TYPE``, shouldn't we skip this call and simply return ``None``?