ServiceView (@NotNull Project project, @NotNull ServiceViewModel viewModel, @NotNull ServiceViewState viewState) { setViewModelState(viewModel, viewState); ServiceView serviceView = viewModel instanceof ServiceViewModel.SingeServiceModel ? createSingleView(project, viewModel) : createTreeView(project, viewModel, viewState); setDataProvider(serviceView); return serviceView; }