private static boolean isMainView(@NotNull ServiceView serviceView) {
    return serviceView.getModel() instanceof AllServicesModel;
  }
private static boolean isMainView(@NotNull ServiceView serviceView)