private static boolean isEnabled(@NotNull CodeStyleSettingsProvider provider) {
    // Enable only providers defining a main language configurable in unit test mode, skip any secondary contributors
    // to avoid test flickering on different class paths.
    return !ApplicationManager.getApplication().isUnitTestMode() || provider.hasSettingsPage();
  }
private static boolean isEnabled(@NotNull CodeStyleSettingsProvider provider)