void (@NotNull PsiSynchronizedStatement statement) { super.visitSynchronizedStatement(statement); final PsiExpression lockExpression = PsiUtil.skipParenthesizedExprDown(statement.getLockExpression()); if (lockExpression instanceof PsiThisExpression) { registerError(lockExpression, Boolean.FALSE); } else if (hasJavaLangClassType(lockExpression)) { registerError(lockExpression, Boolean.TRUE); } }