boolean (PsiClassInitializer initializer) { PsiCodeBlock body = initializer.getBody(); if (body.getStatementCount() != 1) return false; PsiStatement statement = body.getStatements()[0]; if (!(statement instanceof PsiExpressionStatement) || !(((PsiExpressionStatement)statement).getExpression() instanceof PsiMethodCallExpression call)) { return false; } return AsmCodeGenerator.SETUP_METHOD_NAME.equals(call.getMethodExpression().getReferenceName()); }