Very similar to
1) Navigate to a file in a Maven Java project that doesn't have tests yet.
2) Use "Go To Test/Tested Class"
3) In the dialogue that pops up, select Selenium for the Framework (if not already selected)
5) Congratulations, your pom.xml now has some Selenium dependencies in it
This is particularly annoying when the Framework defaults to "Selenium" in some cases, so as soon as the dialogue box pops up, my pom is mangled.