Question: So I have a project in Intellij and I have a tree structure on the left hand side which list out the project name,folders,files etc.

And at the top of the main project, I have my project name in the format of:

```
 Project Name [XXX] C:\Users\xxx\xxx\xxx\ProjectName

```

The problem is [XXX] where I can't find any resources as to what it is and I want to rename it or remove it completely. Any idea what do I need to change?

What is that bracket name represents?

Things I have tried:

Renaming the .iml file

Renaming project name in Project Structure

Answer: 
This is due to `rename` of module not done properly, you or Intellij IDEA would have changed only `directory` name.

The easiest way to fix this issue is press `shift key+f6` / Right click on module `Refactor >> Rename` and select `Rename module`, give name same as `Project/directory`.

Immediately you will see bracket with older module name disappear.

Below is snippet and option to choose highlighted:

[![Rename module](https://i.stack.imgur.com/6yope.png)](https://i.stack.imgur.com/6yope.png)
Besides `<artifactId>` in pom.xml also intellij's project specific iml file name is taken in sequence(intellij 2020.3).