PopupStep (String selectedValue, boolean finalChoice) { if (selectedValue.equals(projectItem)) { addAndRemoveDuplicates(frameworkType, null); return FINAL_CHOICE; } else { return doFinalStep(() -> chooseDirectoryAndAdd(frameworkType)); } }