List<GrCallExpression> (@NotNull GrClosableBlock closure) { GrCallExpression[] applicationStatements = PsiTreeUtil.getChildrenOfType(closure, GrCallExpression.class); if (applicationStatements == null) return Collections.emptyList(); List<GrCallExpression> statements = new ArrayList<>(); for (GrCallExpression statement : applicationStatements) { GrReferenceExpression[] referenceExpressions = PsiTreeUtil.getChildrenOfType(statement, GrReferenceExpression.class); if (referenceExpressions == null) continue; for (GrReferenceExpression expression : referenceExpressions) { String expressionText = expression.getText(); if ("url".equals(expressionText) || "setUrl".equals(expressionText)) { statements.add(statement); } } } return statements; }