void (@NotNull Project project, @Nullable String toolWindowId, @NotNull VarargEventId event, @Nullable WindowInfoImpl windowInfo, @Nullable ToolWindowEventSource source) { if (StringUtil.isEmpty(toolWindowId)) { return; } event.log(project, data -> { PluginInfo info = getToolWindowInfo(toolWindowId); data.add(TOOLWINDOW_ID.with(toolWindowId)); data.add(EventFields.PluginInfo.with(info)); if (windowInfo != null) { data.add(VIEW_MODE.with(ViewMode.fromWindowInfo(windowInfo))); data.add(LOCATION.with(Anchor.fromWindowInfo(windowInfo))); } if (source != null) { data.add(SOURCE.with(source)); } }); }