PsiElement (PsiManager psiManager, Object object, PsiElement element) { if (object instanceof GroovyResolveResult) { return ((GroovyResolveResult)object).getElement(); } if (object instanceof NamedArgumentDescriptor) { return ((NamedArgumentDescriptor)object).getNavigationElement(); } if (object instanceof GrPropertyForCompletion) { return ((GrPropertyForCompletion)object).getOriginalAccessor(); } return null; }