How get syntax errors list


I need synсhronously get syntax errors list of psiFile
For example, we are have next XML document:

<?xml version="1.0"?>

There are no second bracket for tag "a". In code editor some code inspector mark this as error and show a message "Tag start is not closed". How can i use this mechanism manualy synchronousely for particural PsiFile? We spent about week in order to find soulution. Thanks.

Please sign in to leave a comment.