String (@NotNull String path) { if (path.length() > MAX_PATH_LENGTH) { return path.substring(0, MAX_PATH_LENGTH / 2) + "..." + path.substring(path.length() - MAX_PATH_LENGTH / 2 - 3); } return path; }