List<PsiExpression> (@Nullable PsiExpression qualifier, int argumentOffset, @NotNull Predicate<? super PsiMethodCallExpression> methodPredicate) { final PsiExpression definition = findDefinition(PsiUtil.skipParenthesizedExprDown(qualifier)); if (definition instanceof PsiMethodCallExpression definitionCall && methodPredicate.test(definitionCall)) { return JavaLangClassMemberReference.getReflectionMethodArguments(definitionCall, argumentOffset); } return null; }