boolean (@NotNull GitFileStatus record, @Nullable VirtualFile candidateRoot) { if (candidateRoot == null) return false; String recordPath = record.getPath().getPath(); String rootPath = candidateRoot.getPath(); return recordPath.equals(rootPath); }