@Override
    public void visitSynchronizedStatement(@NotNull PsiSynchronizedStatement statement) {
      super.visitSynchronizedStatement(statement);
      if (ControlFlowUtils.isNestedElement(statement, PsiSynchronizedStatement.class)) {
        registerStatementError(statement);
      }
    }
@Override
    public void visitSynchronizedStatement(@NotNull PsiSynchronizedStatement statement)