void (@NotNull PsiClass selectedClass) { Project project = selectedClass.getProject(); ReadAction.nonBlocking(() -> collectPropertyMembers(selectedClass)) .expireWith(KotlinPluginDisposable.getInstance(project)) .finishOnUiThread(ModalityState.defaultModalityState(), (properties) -> { if (properties != null) { var chooser = new MemberChooser<>(properties, false, false, project); chooser.setTitle(KotlinDebuggerCoreBundle.message("property.watchpoint.add.dialog.chooser.title", properties.length)); chooser.setCopyJavadocVisible(false); chooser.show(); var selectedElements = chooser.getSelectedElements(); if (selectedElements != null && selectedElements.size() == 1) { var field = (KtProperty) selectedElements.get(0).getElement(); myFieldChooser.setText(field.getName()); } } }).submit(AppExecutorUtil.getAppExecutorService()); }