private boolean isFileNameExist() {
    if (myPathTextField == null) return false;
    final String path = myPathTextField.getTextFieldText();
    return path != null && new File(path.trim()).exists() && !myFileName.getText().trim().isEmpty();
  }
private boolean isFileNameExist()