void (final @NotNull PsiResourceList resourceList) { super.visitResourceList(resourceList); final PsiElement last = resourceList.getLastChild(); if (PsiUtil.isJavaToken(last, JavaTokenType.RPARENTH)) { final PsiElement prev = PsiTreeUtil.skipWhitespacesAndCommentsBackward(last); if (PsiUtil.isJavaToken(prev, JavaTokenType.SEMICOLON)) { registerError(prev); } } }