コード例 #1
0
  @Nullable
  public static PsiElement getMethodParameterPsiElementAt(
      @Nullable MethodReference methodReference, int index) {

    if (methodReference == null) {
      return null;
    }

    return getMethodParameterPsiElementAt(methodReference.getParameterList(), index);
  }
コード例 #2
0
  @Nullable
  public static String getMethodParameterAt(@NotNull MethodReference methodReference, int index) {

    ParameterList parameterList = methodReference.getParameterList();
    if (parameterList == null) {
      return null;
    }

    return getMethodParameterAt(parameterList, index);
  }