public static ValueHint createValueHint( Project project, Editor editor, Point point, ValueHintType type) { Trinity<PsiElement, TextRange, Value> trinity = getSelectedExpression(project, editor, point, type); final ValueHint hint = new ValueHint(project, editor, point, type, trinity.getFirst(), trinity.getSecond()); hint.myValueToShow = trinity.getThird(); return hint; }