boolean (@NotNull VirtualFile root, @NotNull FilePath path, @NotNull List<String> output) { String relativePath = getRelativePath(root, path); if (relativePath == null) return false; for (String line : output) { if (line.startsWith("---") || line.startsWith("+++")) { if (line.contains(relativePath)) { return true; } } } return false; }