String (@NotNull @NonNls String name) { String fileName = new File(name).getName(); if (StringUtil.isEmptyOrSpaces(fileName)) { return IdeBundle.message("error.name.cannot.be.empty"); } else if (name.length() > MAX_PATH) { return VcsBundle.message("patch.creation.name.too.long.error"); } return null; }