/** Returns true if the type is a type variable or a type parameter reference. */ private static boolean isTypeVariable(@Nullable PsiType psiType) { return psiType instanceof PsiTypeVariable || psiType instanceof PsiClassReferenceType && ((PsiClassReferenceType) psiType).resolve() instanceof PsiTypeParameter; }
public abstract boolean binds(final PsiTypeVariable var);
public abstract Set<PsiTypeVariable> getBoundVariables();
public abstract void addTypeVariable (PsiTypeVariable var);
public abstract HashSet<PsiTypeVariable> getBoundVariables();