You can set up a project around the existing source code created externally.
WebStorm analyzes the code base, adds the .idea directory with settings, and
marks the project with the special icon
.
You also create a project from already existing sources when you need to update an application on a remote host. In this case, the downloaded sources are also arranged in a project.