boolean (@NotNull MergeRequest request) { if (request instanceof ThreesideMergeRequest) { DiffContent outputContent = ((ThreesideMergeRequest)request).getOutputContent(); if (!canProcessOutputContent(outputContent)) return false; List<? extends DiffContent> contents = ((ThreesideMergeRequest)request).getContents(); if (contents.size() != 3) return false; for (DiffContent content : contents) { if (!ExternalDiffToolUtil.canCreateFile(content)) return false; } return true; } return false; }