void () { List<SingleInspectionProfilePanel> panels = myModel.getProfilePanels(); if (panels.isEmpty()) { LOG.error("No profiles to select."); return; } selectScheme(panels.get(0).getProfile()); if (getSelectedScheme() == null) { LOG.error("Selected scheme is still null."); } }