Object[] (final String name, final String pattern) { final InspectionToolWrapper tool = myToolNames.get(name); if (tool == null) { return InspectionElement.EMPTY_ARRAY; } return new InspectionElement[] {new InspectionElement(tool, PsiManager.getInstance(getProject()))}; }