Add salt. Stir to mix in with onions, then add pasta, lentils, vegetable stock, tomatoes, oregano, thyme, pepper and lemon juice.
Remove lid. Add parsley (and spinach and Parmesan if using). Heat for one minute longer (or until cheese has melted, if using).