private static boolean isMethod(@NotNull PsiReferenceExpression expression) {
    return expression.getParent() instanceof PsiMethodCallExpression &&
           expression.getNextSibling() instanceof PsiExpressionList;
  }
private static boolean isMethod(@NotNull PsiReferenceExpression expression)