int tabCount = projectPane.getTabCount();
for (int tabIndex = 1; tabIndex < tabCount; tabIndex++) {
Component tabComponent = projectPane.getComponentAt(tabIndex);
if (tabComponent instanceof ProjectPanel) {
if (((ProjectPanel) tabComponent).getProject() == project) {
int tabCount = projectPane.getTabCount();
for (int tabIndex = 1; tabIndex < tabCount; tabIndex++) {
Component tabComponent = projectPane.getComponentAt(tabIndex);
if (tabComponent instanceof ProjectPanel) {
if (((ProjectPanel) tabComponent).getProject() == project) {