String (String text) { final int LEN = EMPTY_STRING.length(); String right; if (text == null) { right = EMPTY_STRING; } else if (text.length() == LEN) { right = text; } else if (text.length() < LEN) { right = text + EMPTY_STRING.substring(0, LEN - text.length()); } else { right = "..." + text.substring(text.length() - LEN + 2); } return DiffBundle.message("label.dirdiff.loading.file", right); }