String (@Nullable final String currentSubId, @NotNull final VirtualFile vFile) { if (currentSubId != null && contains(currentSubId, vFile)) { return currentSubId; } for (String listName : myName2FavoritesRoots.keySet()) { if (contains(listName, vFile)) { return listName; } } return null; }