void (@NotNull List<Object> elementToShow, GroovyResolveResult @NotNull [] variants) { for (GroovyResolveResult variant : variants) { final PsiElement element = variant.getElement(); if (element instanceof PsiMethod) { elementToShow.add(variant); } else if (element instanceof GrVariable) { final PsiType type = ((GrVariable)element).getTypeGroovy(); if (type instanceof GrClosureType) { addSignatureVariant(elementToShow, (GrClosureType)type); } } } }