You can start referring to a Spring bean even if it hasn't been created yet. Press &shortcut:ShowIntentionActions; to create the necessary bean without leaving your current editing location.

Creating a Spring bean from usage