boolean (T aClass) { if (System.currentTimeMillis() - start > 500 && !ApplicationManager.getApplication().isUnitTestMode()) { return false; } if (getTreeClassChooserDialog().getFilter().isAccepted(aClass) && aClass.getName() != null) { nameProcessor.process(aClass.getName()); } return true; }