private PsiTypeItem(final PsiType type, Project project) { myType = type; myTypePointer = SmartTypePointerManager.getInstance(project).createSmartTypePointer(type); }
public VariableData(@NotNull PsiVariable var, @NotNull PsiType type) { variable = var; this.type = SmartTypePointerManager.getInstance(var.getProject()).createSmartTypePointer(type).getType(); }