private static boolean checkUnparsableReference(PsiExpression refExpression) {
    PsiElement parent = refExpression.getParent();
    if (parent instanceof PsiAssignmentExpression assignmentExpression) {
      IElementType operation = assignmentExpression.getOperationTokenType();
      if (assignmentExpression.getLExpression() == refExpression && JavaTokenType.PLUSEQ.equals(operation)) {
        return true;
      }
    }
    else if (parent instanceof PsiPolyadicExpression ||
             parent instanceof PsiParenthesizedExpression ||
             parent instanceof PsiConditionalExpression) {
      return true;
    }
    return false;
  }
private static boolean checkUnparsableReference(PsiExpression refExpression)