GrSignature (GroovyResolveResult resolveResult) { final PsiElement resolved = resolveResult.getElement(); if (!(resolved instanceof PsiMethod)) return null; final PsiSubstitutor substitutor = resolveResult.getSubstitutor(); return createSignature((PsiMethod)resolved, substitutor); }