private static @Nullable JCheckBox findCheckbox(@NotNull JPanel panel, @NotNull String srcText) {
        JCheckBox checkBox = null;
        for (Component component : panel.getComponents()) {
            if (component instanceof JCheckBox jCheckBox) {
                if (jCheckBox.getText().equals(srcText)) {
                    checkBox = jCheckBox;
                }
                break;
            }
            if (component instanceof JPanel jPanel) {
                checkBox = findCheckbox(jPanel, srcText);
                if (checkBox != null) break;
            }
        }
        return checkBox;
    }
private static @Nullable JCheckBox findCheckbox(@NotNull JPanel panel, @NotNull String srcText)