}
@RunsInEDT
private @Nullable JTextComponent findEditor(@Nonnull JSpinner spinner) {
ComponentFinder finder = robot.finder();
List<Component> found = newArrayList(finder.findAll(spinner, EDITOR_MATCHER));
if (found.size() != 1) {
return null;
}
Component c = found.get(0);
if (c instanceof JTextComponent) {