@Override
    public void visitSynchronizedStatement(@NotNull GrSynchronizedStatement synchronizedStatement) {
      super.visitSynchronizedStatement(synchronizedStatement);
      final GrStatement parent = PsiTreeUtil.getParentOfType(synchronizedStatement, GrSynchronizedStatement.class, GrClosableBlock.class);
      if ((parent instanceof GrSynchronizedStatement)) {
        registerStatementError(synchronizedStatement);
        return;
      }
      final GrMethod containingMethod = PsiTreeUtil.getParentOfType(synchronizedStatement, GrMethod.class);
      if (containingMethod != null && containingMethod.hasModifierProperty(PsiModifier.SYNCHRONIZED)) {
        registerStatementError(synchronizedStatement);
      }
    }
@Override
    public void visitSynchronizedStatement(@NotNull GrSynchronizedStatement synchronizedStatement)