void (@NotNull PsiMethodCallExpression expression) { if (method.equals(expression.resolveMethod())) { if (result[0] != null) { LOG.error("To many generated method invocations found"); } else { result[0] = expression; } } }