boolean (@NotNull BranchType type, @NotNull String branchName) { Collection<String> predefinedNames = myPredefinedFavoriteBranches.get(type); return predefinedNames != null && predefinedNames.contains(branchName); }