boolean (@NotNull DiffContent content) { if (content instanceof EmptyContent) return true; if (content instanceof DirectoryContent) return true; if (content instanceof FileContent && content.getContentType() instanceof ArchiveFileType && ((FileContent)content).getFile().isValid() && ((FileContent)content).getFile().isInLocalFileSystem()) { return true; } return false; }