@Nullable
  private static PsiLocalVariable getVariable(@NotNull PsiAssignmentExpression occurrence) {
    if (PsiUtil.skipParenthesizedExprDown(occurrence.getRExpression()) instanceof PsiReferenceExpression referenceExpression &&
        referenceExpression.resolve() instanceof PsiLocalVariable localVariable) {
      return localVariable;
    }

    return null;
  }
@Nullable
  private static PsiLocalVariable getVariable(@NotNull PsiAssignmentExpression occurrence)