protected static boolean areDelegatingOrEqual(@NotNull FontPreferences preferences1, @NotNull FontPreferences preferences2) {
    boolean isDelegating1 = preferences1 instanceof DelegatingFontPreferences;
    boolean isDelegating2 = preferences2 instanceof DelegatingFontPreferences;
    return isDelegating1 || isDelegating2 ? isDelegating1 && isDelegating2 : preferences1.equals(preferences2);
  }
protected static boolean areDelegatingOrEqual(@NotNull FontPreferences preferences1, @NotNull FontPreferences preferences2)