boolean (@NotNull final T literal, final ProcessingContext context) { final PsiElement parent = literal.getParent(); if (parent instanceof PsiExpressionList) { return hasIndex(literal, index) && checkCall(context, (PsiExpressionList)parent, methodPattern, nameCondition); } return false; }