boolean (@NotNull SvnVcs vcs, VirtualFile @NotNull [] files) { Stream<VirtualFile> fileStream = Stream.of(files); Predicate<VirtualFile> enabledPredicate = file -> isEnabled(vcs, file); return ProjectLevelVcsManager.getInstance(vcs.getProject()).checkAllFilesAreUnder(vcs, files) && (needsAllFiles() ? fileStream.allMatch(enabledPredicate) : fileStream.anyMatch(enabledPredicate)); }