void (final Object object) { if (object instanceof PsiElement) { updateModel((PsiElement)object, null); } else if (object instanceof Module) { List<Object> l = new ArrayList<>(); l.add(myProject); l.add(object); setModel(l); } }