void (PsiCodeBlock body) { final PsiStatement firstStatement = ControlFlowUtils.getFirstStatementInBlock(body); if (!(firstStatement instanceof PsiExpressionStatement)) { return; } final PsiExpression firstExpression = ((PsiExpressionStatement)firstStatement).getExpression(); if (!(firstExpression instanceof PsiMethodCallExpression methodCallExpression)) { return; } final PsiReferenceExpression methodExpression = methodCallExpression.getMethodExpression(); @NonNls final String methodName = methodExpression.getReferenceName(); if (!HardcodedMethodConstants.NOTIFY.equals(methodName) && !HardcodedMethodConstants.NOTIFY_ALL.equals(methodName)) { return; } final PsiExpressionList argumentList = methodCallExpression.getArgumentList(); if (!argumentList.isEmpty()) { return; } registerMethodCallError(methodCallExpression); }