Fixing the code: #getCompilationUnit() is available in IMember, not
IJavaElement.