void (ActionEvent e) { PsiClass selectedClass = getSelectedClass(); if (selectedClass != null) { PsiField[] fields = selectedClass.getFields(); MemberChooser<PsiFieldMember> chooser = new MemberChooser<>(ContainerUtil.map2Array(fields, PsiFieldMember.class, PsiFieldMember::new), false, false, myProject); chooser.setTitle(JavaDebuggerBundle.message("add.field.breakpoint.dialog.field.chooser.title", fields.length)); chooser.setCopyJavadocVisible(false); chooser.show(); List<PsiFieldMember> selectedElements = chooser.getSelectedElements(); if (selectedElements != null && selectedElements.size() == 1) { PsiField field = selectedElements.get(0).getElement(); myFieldChooser.setText(field.getName()); } } }