Pessimism and optimism
The thought of pessimism stems from the thought that “I’m a pessimist”. Similarly, Optimism starts from the thought, “I’m an optimist.” Once you tell that to yourself, see how all thoughts fall in place. It’s like I used to tell myself, “I’m a good boy.”