Refactor SonarManager

cannot solve ”Type mismatch: cannot convert File from String”