So basically this issue seems to be the size of the intellisense of the IDE which I configured in the vmoptions cofig file.
Use
-Didea.max.intellisense.filesize=5000
it incerased the limit to 5 MB and solves the problem.
Thanks for the suggestion and pointing it out at the first place.