String () { StringBuilder builder = new StringBuilder(); if (portableFilePath != null) { builder.append("In file '").append(portableFilePath.getPresentablePath()).append("' "); } if (line != null) { builder.append("(at line #").append(line).append(") "); } if (!builder.isEmpty()) { builder.append("\n"); } builder.append(text); return builder.toString(); }