boolean () { try { String name = getQualifiedName(myReferenceElement); if (name != null) { Pattern pattern = Pattern.compile(DaemonCodeAnalyzerSettings.getInstance().NO_AUTO_IMPORT_PATTERN); Matcher matcher = pattern.matcher(name); if (matcher.matches()) { return true; } } } catch (PatternSyntaxException e) { //ignore } return false; }