GrTypeArgumentList (@NotNull CreateParameterInfoContext context) { final GrTypeArgumentList parameterList = ParameterInfoUtils.findParentOfType(context.getFile(), context.getOffset(), GrTypeArgumentList.class); if (parameterList != null) { if (!(parameterList.getParent() instanceof GrCodeReferenceElement ref)) return null; final PsiElement resolved = ref.resolve(); if (!(resolved instanceof PsiTypeParameterListOwner)) return null; final PsiTypeParameter[] typeParams = ((PsiTypeParameterListOwner)resolved).getTypeParameters(); if (typeParams.length == 0) return null; context.setItemsToShow(typeParams); return parameterList; } return null; }