ProjectViewTree (@NotNull DefaultTreeModel treeModel) { return new ProjectViewTree(treeModel) { @Override public String toString() { return getTitle() + " " + super.toString(); } @Override public void setFont(Font font) { if (AdvancedSettings.getBoolean("bigger.font.in.project.view")) { font = font.deriveFont(font.getSize() + 1.0f); } super.setFont(font); } @Override public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = super.getAccessibleContext(); accessibleContext.setAccessibleName(IdeBundle.message("project.structure.tree.accessible.name")); } return accessibleContext; } }; }