IMO, in your newly written class, you tried to call the getWebDriver()
method statically:
DriverManager.getWebDriver()
instead of creating an instance of DriverManager
firstly:
new DriverManager().getWebDriver()
This would cause a compilation error since initially, DriverManager#getWebDriver() is an instance method, not a class method (thereby static).
Therefore, Eclipse probably helped you (with your involontary approbation surely) by making the method static
in order to compile successfully.
For more information about static
concept: click here.