In complex JSP files you may have an internal declarations (custom fields of the servlet, inner classes, etc).
I have an extreme example of such JSP which mainly consists of internal class declarations embraced with <%! and %> tags. Such part should be treated as Java-code and syntax highlighting in Consulo seems to be aware of it. Though code inspections, refactorings and such treat this fragments as HTML code and warn about unusual HTML tags here and there.
Idea Ultimate Edition treats these parts of JSP correctly, though this functionality was not ported to Community Edition. Would be nice to have more correct support for JSP files in Consulo with JavaEE plugin installed.