@Override
  public int getTypeParameterIndex(PsiTypeParameter typeParameter) {
    LOG.assertTrue(typeParameter.getParent() == this);
    return PsiImplUtil.getTypeParameterIndex(typeParameter, this);
  }
@Override
  public int getTypeParameterIndex(PsiTypeParameter typeParameter)