PsiMethod () { final GroovyResolveResult result = resolveMethod(getElement()); if (result == null) return null; final PsiElement element = result.getElement(); return element instanceof PsiMethod ? (PsiMethod)element : null; }