boolean (@NotNull RunConfiguration runConfiguration, @NotNull T task) { final ToolSelectDialog dialog = new ToolSelectDialog(runConfiguration.getProject(), task.getToolActionId(), createToolsPanel()); if (!dialog.showAndGet()) { return false; } boolean isModified = dialog.isModified(); Tool selectedTool = dialog.getSelectedTool(); if (selectedTool == null) { return true; } String selectedToolId = selectedTool.getActionId(); String oldToolId = task.getToolActionId(); if (oldToolId != null && oldToolId.equals(selectedToolId)) { return isModified; } task.setToolActionId(selectedToolId); return true; }