private static @NotNull String getString(@NotNull TreePath treePath, @NotNull Map<VirtualFile, @Nls String> modulesSet) {
      DefaultMutableTreeNode lastPathComponent = ((DefaultMutableTreeNode)treePath.getLastPathComponent());
      Object uo = lastPathComponent.getUserObject();
      if (uo instanceof FileNodeDescriptor) {
        VirtualFile file = ((FileNodeDescriptor)uo).getElement().getFile();
        String module = modulesSet.get(file);
        if (module != null) return module;
        return file == null ? "" : file.getName();
      }
      return treePath.toString();
    }
private static @NotNull String getString(@NotNull TreePath treePath, @NotNull Map<VirtualFile, @Nls String> modulesSet)