public String getDirectoryOfInitalisationFile() {
        String filePath = initialisationFileTextField.getText();

        if (filePath.isEmpty()) {
            return "";
        }

        File file = new File(filePath);

        if (file.isFile()) {
            return file.getParent();
        }

        if (file.isDirectory()) {
            return file.getPath();
        }

        return "";
    }