PsiType (@NotNull PsiVariable var, @NotNull PsiElement place) { for (VariableTypeCalculator calculator : EP_NAME.getExtensionList()) { final PsiType type = calculator.inferVarTypeAt(var, place); if (type != null) return type; } return var.getType(); }