deferred icons fix -- caches for different flags
[idea/community.git] / java / java-impl / src / com / intellij / psi / impl / PsiClassImplUtil.java
index 4381d526f87b371e0300d16362dae8df05d08819..096f1efe87098466c124e23fd2fae4eaca7e6324 100644 (file)
@@ -324,7 +324,7 @@ public class PsiClassImplUtil {
   };
 
   public static Icon getClassIcon(final int flags, final PsiClass aClass) {
-    Icon base = aClass.getUserData(Iconable.LAST_COMPUTED_ICON);
+    Icon base = Iconable.LastComputedIcon.get(aClass, flags);
     if (base == null) {
       Icon symbolIcon = ElementPresentationUtil.getClassIconOfKind(aClass, ElementPresentationUtil.getBasicClassKind(aClass));
       RowIcon baseIcon = ElementBase.createLayeredIcon(symbolIcon, 0);