GrTypeParameterList (@NotNull PsiElement position) { final PsiElement parent = position.getParent(); if (parent instanceof GrVariable) { final PsiElement pparent = parent.getParent(); if (pparent instanceof GrVariableDeclaration) { PsiElement candidate = PsiUtil.skipWhitespacesAndComments(parent.getPrevSibling(), false); if (candidate instanceof GrTypeParameterList) { return (GrTypeParameterList)candidate; } } } return null; }