void () { Dialog pickerDialog = getPickerDialog(); if (pickerDialog != null) { pickerDialog.setVisible(false); } Color initialColor = getInitialColor(); if (initialColor != null) { notifyListener(initialColor, 0); } }