@Override
  public int getParameterCount() {
    PsiTypeParameterList list = myClass.getTypeParameterList();
    if (list == null) return 0;
    PsiTypeParameter[] parameters = list.getTypeParameters();
    if (mySubstitutor.hasRawSubstitution()) {
      for (PsiTypeParameter parameter : parameters) {
        if (mySubstitutor.substitute(parameter) == null) return 0;
      }
    }
    return parameters.length;
  }
@Override
  public int getParameterCount()