void (@Nullable PsiType type) { if (!(type instanceof PsiClassType)) return; final PsiClass psiClass = ((PsiClassType)type).resolve(); if (psiClass == null || !CommonClassNames.JAVA_LANG_CLASS.equals(psiClass.getQualifiedName())) return; final PsiType[] params = ((PsiClassType)type).getParameters(); if (params.length != 1) return; getVariantsFromQualifierType(params[0], myRefExpr.getProject()); }