String (@NotNull Object leaked, @Nullable Object backLink, boolean detailedErrorDescription) { int hashCode = System.identityHashCode(leaked); String result = "Found a leaked instance of "+leaked.getClass() +"\nInstance: "+leaked +"\nHashcode: "+hashCode; if (detailedErrorDescription) { result += "\n"+getLeakedObjectErrorDescription(null); } if (backLink != null) { result += "\nExisting strong reference path to the instance:\n" +backLink.toString().indent(2); } String creationPlace = leaked instanceof Project ? getCreationPlace((Project)leaked) : null; if (creationPlace != null) { result += "\nThe instance was created at: "+creationPlace; } return result; }