I have many calls to static class method
E.g.
LegacyLogger.println (ERROR_LEVEL, "Simple string parameter");
I have found all the needed code occurrences by using the template:
LegacyLogger.println(ERROR_LEVEL, $params$)
How can I possibly import class and create a new field
Logger logger = Logger.GetInstance(SomeClass.class);
inside classes after replacing this search string with:
logger.error("Simple string parameter");