void (@NotNull PsiParenthesizedExpression expression) { PsiElement parent = expression.getParent(); if (parent != null) { final MyParentVisitor visitor = new MyParentVisitor(expression, myForCompletion, myClassProvider, myVoidable, myUsedAfter, myMaxCandidates); parent.accept(visitor); for (final ExpectedTypeInfo info : visitor.myResult) { myResult.add(createInfoImpl(info.getType(), info.getKind(), info.getDefaultType(), JavaTailTypes.RPARENTH, info.getCalledMethod(), ((ExpectedTypeInfoImpl)info)::getExpectedName)); } } }