boolean (RncElement location) { PsiElement prev = location.getPrevSibling(); while (prev instanceof PsiWhiteSpace || prev instanceof PsiComment) { if (prev instanceof PsiComment) { @NonNls String text = prev.getText(); if (text.matches("\n*#\\s*suppress\\s.+") && (text.contains(getID()) || "ALL".equals(text))) return true; } prev = prev.getPrevSibling(); } return false; }