void (@NotNull Component parentComponent, @NotNull Consumer<? super @NotNull FontSize> changeCallback) { FontSizePopupData popupData = FontSizePopup.showFontSizePopup( parentComponent, DocumentationComponent.getQuickDocFontSize(), Arrays.asList(FontSize.values()), () -> { ourCurrentSlider = null; return Unit.INSTANCE; }, size -> { DocumentationComponent.setQuickDocFontSize(size); changeCallback.accept(size); return Unit.INSTANCE; } ); ourCurrentSlider = new WeakReference<>(popupData.getSlider()); }