private boolean isField(@NotNull PsiReferenceExpression referenceExpression) {
    return !isMethod(referenceExpression) &&
           (ContainerUtil.exists(referenceExpression.getChildren(), child -> child.getText().equals(".")) ||
            !myVariableNames.contains(referenceExpression.getReferenceName()));
  }
private boolean isField(@NotNull PsiReferenceExpression referenceExpression)