I decided to try the IntelliJ IDEA editor (https://www.jetbrains.com/idea/download/). After installing the editor, I realized that Spotlight did not list it even after several days.
While searching for a solution, it came to my notice that this is a common problem and can be fixed easily. There were several solutions listed on the Internet. The one that worked for me was to open
System Preferences -> Spotlight -> Privacy and add the volume
Macintosh HD to the exclude list (volumes / directories that Spotlight will not index for search) and remove it immediately. This solution was listed in one of the threads related to Spotlight at the Apple Support Communities portal (https://discussions.apple.com/thread/2697313?tstart=0).
There were several other solutions that I did not try but found one of them worth mentioning: