void (@NotNull PsiElement expression) { ExpressionTypeProvider provider = Objects.requireNonNull(map.get(expression)); TextRange range = expression.getTextRange(); editor.getSelectionModel().setSelection(range.getStartOffset(), range.getEndOffset()); // noinspection unchecked displayHint(new DisplayedTypeInfo(expression, provider, editor), false); }