Warm the olive oil in a large, heavy saute pan over medium-high heat. Add the onions and cook until translucent, about 4 minutes. Add the mushrooms, green beans, salt, and pepper and cook for 2 minutes. Add the wine and continue cooking until the green beans are almost tender, about 5 minutes. Add the red pepper flakes and the kale and continue cooking until the kale has wilted, about 4 to 5 minutes. Add the lemon juice and the Parmesan cheese. Toss to coat and serve immediately.