void () { if (myEnvFilePaths.isEmpty()) { EnvFilesDialogKt.addEnvFile(getTextField(), null, s -> { myEnvFilePaths.add(s); updateText(); return null; }); } else { EnvFilesDialog dialog = new EnvFilesDialog(this, myEnvFilePaths); dialog.show(); if (dialog.isOK()) { myEnvFilePaths = new ArrayList<>(dialog.getPaths()); updateText(); } } }