public PsiField getPsiField() {
    final SourcePosition sourcePosition = getSourcePosition();
    try {
      PsiField field = ReadAction.compute(() -> {
        PsiClass psiClass = getPsiClassAt(sourcePosition);
        return psiClass != null ? psiClass.findFieldByName(getFieldName(), false) : null;
      });
      if (field != null) {
        return field;
      }
    }
    catch (IndexNotReadyException ignored) {
    }
    return PositionUtil.getPsiElementAt(myProject, PsiField.class, sourcePosition);
  }
public PsiField getPsiField()