PsiImmediateClassType#getParameterCount optimized implementation

GitOrigin-RevId: 944cda81039386120db79b2124ce686aa987264e
This commit is contained in:
Tagir Valeev
2019-08-14 09:03:37 +03:00
committed by intellij-monorepo-bot
parent 5276c9d8fd
commit ba14a3823c
@@ -118,6 +118,13 @@ public class PsiImmediateClassType extends PsiClassType.Stub {
return myClass.getName();
}
@Override
public int getParameterCount() {
PsiTypeParameterList list = myClass.getTypeParameterList();
if (list == null) return 0;
return list.getTypeParameters().length;
}
@Override
@NotNull
public PsiType[] getParameters() {