PsiElement (PsiElement element, boolean onlyNonStatic) { for (ImportSearcher searcher : EP_NAME.getExtensions()) { PsiElement anImport = searcher.findImport(element, onlyNonStatic); if (anImport != null) return anImport; } return null; }