SuggestedNameInfo (PsiElement psiElement, PsiElement nameSuggestionContext, Set<String> result) { SuggestedNameInfo resultInfo = null; for (NameSuggestionProvider provider : EP_NAME.getExtensionList()) { SuggestedNameInfo info = provider.getSuggestedNames(psiElement, nameSuggestionContext, result); if (info != null) { resultInfo = info; if (provider instanceof PreferrableNameSuggestionProvider && !((PreferrableNameSuggestionProvider)provider).shouldCheckOthers()) { break; } } } return resultInfo; }