PsiMethodCallExpression (PsiStatement[] statements) { PsiExpressionStatement expressionStatement = tryCast(ArrayUtil.getLastElement(statements), PsiExpressionStatement.class); if (expressionStatement == null) return null; return tryCast(expressionStatement.getExpression(), PsiMethodCallExpression.class); }