@Override
  public @Nullable PsiEnumConstant getEnumConstant(int ordinal) {
    int cur = 0;
    for (PsiField field : myClass.getFields()) {
      if (field instanceof PsiEnumConstant) {
        if (cur == ordinal) return (PsiEnumConstant)field;
        cur++;
      }
    }
    return null;
  }
@Override
  public @Nullable PsiEnumConstant getEnumConstant(int ordinal)