boolean (@NotNull VirtualFile file) { GitRepositoryManager manager = GitUtil.getRepositoryManager(myProject); GitRepository repository = manager.getRepositoryForFileQuick(file); return repository != null && !repository.isFresh(); }