@Override
  public int getParameterIndex(@NotNull PsiParameter parameter) {
    PsiElement parent = parameter.getParent();
    if (parent != this) {
      LOG.error("Not my parameter; parameter class = " + parameter.getClass() + "; " +
                "this class = " + getClass() + "; " +
                "parameter parent class = " + (parent == null ? null : parent.getClass()));
    }
    return PsiImplUtil.getParameterIndex(parameter, this);
  }
@Override
  public int getParameterIndex(@NotNull PsiParameter parameter)