void (@NotNull T member, @NotNull Consumer<? super String> errorRegister) { for (NamingConvention<T> namingConvention : myNamingConventions.values()) { if (namingConvention.isApplicable(member)) { String shortName = namingConvention.getShortName(); if (myDisabledShortNames.contains(shortName)) { break; } NamingConventionBean activeBean = myNamingConventionBeans.get(shortName); if (activeBean instanceof NamingConventionWithFallbackBean && ((NamingConventionWithFallbackBean)activeBean).isInheritDefaultSettings()) { LOG.assertTrue(myDefaultConventionShortName != null, activeBean + " expects that default conversion is configured"); shortName = myDefaultConventionShortName; //disabled when fallback is disabled if (myDisabledShortNames.contains(shortName)) { break; } activeBean = myNamingConventionBeans.get(shortName); namingConvention = myNamingConventions.get(shortName); } if (!namingConvention.isValid(member, activeBean)) { errorRegister.accept(shortName); } break; } } }