private static PsiElement[] getJavaArguments(@NotNull PsiElement referenceElement) {
    PsiExpression expression = PsiTreeUtil.getParentOfType(referenceElement, PsiExpression.class, false);
    if (expression == null) return null;
    PsiElement parent = expression.getParent();
    if (!(parent instanceof PsiExpressionList)) return null;
    PsiExpression[] arguments = ((PsiExpressionList)parent).getExpressions();
    int i = ArrayUtil.indexOf(arguments, expression);
    if (i == -1) return null;
    return Arrays.copyOfRange(arguments, i + 1, arguments.length, PsiElement[].class);
  }
private static PsiElement[] getJavaArguments(@NotNull PsiElement referenceElement)