PsiElementVisitor (@NotNull ProblemsHolder holder, boolean isOnTheFly) { return UastHintedVisitorAdapter.create(holder.getFile().getLanguage(), new AbstractUastNonRecursiveVisitor() { @Override public boolean visitExpression(@NotNull UExpression node) { if (node instanceof UCallExpression) { handleCallExpression(holder, (UCallExpression)node); } else if (node instanceof UQualifiedReferenceExpression) { UElement parent = node.getUastParent(); if (parent instanceof UCallExpression) { handleCallExpression(holder, (UCallExpression)parent); } } return true; } }, U_ELEMENT_TYPES_HINT); }