void (@NotNull PsiClassObjectAccessExpression expression) { PsiType type = expression.getOperand().getType(); if (type instanceof PsiClassReferenceType) { PsiClass aClass = ((PsiClassReferenceType)type).resolve(); if (aClass != null) { type = JavaPsiFacade.getElementFactory(expression.getProject()).createType(aClass, ((PsiClassReferenceType)type).getParameters()); } } myResult = type; }