private static boolean followsError(GrClosableBlock closure){
  PsiElement prev=closure.getPrevSibling();
  return prev instanceof PsiErrorElement || prev instanceof PsiWhiteSpace && prev.getPrevSibling() instanceof PsiErrorElement;
}

private static boolean followsError ( GrClosableBlock closure ) { PsiElement prev = closure . getPrevSibling ( ) ; return prev instanceof PsiErrorElement || prev instanceof PsiWhiteSpace && prev . getPrevSibling ( ) instanceof PsiErrorElement ; }
for example if ( ! ( a inst ) ) { } ^ we are here
