void (@Nullable PsiFile selection) { final int oldSize = myFiles.length; myFiles = PsiFile.EMPTY_ARRAY; if (myFiles.length != oldSize) fireIntervalRemoved(this, 0, oldSize - 1); if (selection != null) { myFiles = myManager.getAssociationsFor(selection); if (myFiles.length > 0) fireIntervalAdded(this, 0, myFiles.length - 1); } }