PyType (@NotNull PsiElement target, @NotNull TypeEvalContext context, @Nullable PsiElement anchor) { if (target instanceof PyClass && "enum.auto".equals(((PyClass)target).getQualifiedName()) && anchor instanceof PyCallExpression) { PyClassLikeType classType = as(context.getType((PyTypedElement)target), PyClassLikeType.class); if (classType != null) { return new PyCallableTypeImpl(Collections.emptyList(), classType.toInstance()); } } return null; }