diff --git a/platform/platform-api/src/com/intellij/ide/util/treeView/AbstractTreeUi.java b/platform/platform-api/src/com/intellij/ide/util/treeView/AbstractTreeUi.java index 40bf789ae495..6eab36bc1b7f 100644 --- a/platform/platform-api/src/com/intellij/ide/util/treeView/AbstractTreeUi.java +++ b/platform/platform-api/src/com/intellij/ide/util/treeView/AbstractTreeUi.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2016 JetBrains s.r.o. + * Copyright 2000-2017 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -5097,9 +5097,11 @@ public class AbstractTreeUi { }); } - private static void warnMap(String prefix, Map map) { + private void warnMap(String prefix, Map map) { if (!LOG.isDebugEnabled()) return; - if (!SwingUtilities.isEventDispatchThread()) LOG.warn(prefix + "modified on wrong thread"); + if (!SwingUtilities.isEventDispatchThread() && !myPassThroughMode) { + LOG.warn(prefix + "modified on wrong thread"); + } long count = map.keySet().stream().filter(AbstractTreeUi::isNodeNull).count(); if (count > 0) LOG.warn(prefix + "null keys: " + count + " / " + map.size()); }