Reports mismatches between light service levels and its constructors.

The following problems are reported:

Example (Kotlin):


@Service                              // Suggest specifying 'Service.Level.PROJECT' parameter in '@Service' annotation
class MyService(val project: Project) // Suggest removing the parameter from constructor 'MyService'

After applying the quick-fix that suggests specifying 'Service.Level.PROJECT' parameter in '@Service' annotation is applied:


@Service(Service.Level.PROJECT)
class MyService(val project: Project)

After applying the quick-fix that suggests removing the parameter from constructor 'MyService':


@Service
class MyService()

New in 2023.2