MergeTool (@NotNull MergeRequest request) { for (MergeTool tool : myAvailableTools) { try { if (tool.canShow(myContext, request)) return tool; } catch (Throwable e) { LOG.error(e); } } return ErrorMergeTool.INSTANCE; }