CustomMethodHandler (PsiMethod method) { CustomMethodHandler handler = null; if (isConstantCall(method)) { handler = toValue((arguments, state, factory, m) -> handleConstantCall(arguments, state, m)); } CustomMethodHandler handler2 = CUSTOM_METHOD_HANDLERS.mapFirst(method); return handler == null ? handler2 : handler.compose(handler2); }