void (@NotNull String eventName, @NotNull VirtualFile file, @Nullable Supplier<String> additionalMessage) { tryLog(() -> { return "event=" + eventName + ",f=" + file.getPath() + (file instanceof VirtualFileWithId ? (",id=" + ((VirtualFileWithId)file).getId()) : "") + (additionalMessage == null ? "" : ("," + additionalMessage.get())); }); }