List<FilePath> (@NotNull ChangesBrowserNode<?> node) { List<FilePath> result = Collections.emptyList(); Object userObject = node.getUserObject(); if (userObject instanceof FilePath) { result = Collections.singletonList(((FilePath)userObject)); } else if (userObject instanceof Module) { result = ContainerUtil.map(ModuleRootManager.getInstance((Module)userObject).getContentRoots(), VcsUtil::getFilePath); } return result; }