boolean (@NotNull Constructor<?> constructor) { for (Annotation o : constructor.getAnnotations()) { String name = o.annotationType().getName(); if ("com.intellij.serviceContainer.NonInjectable".equals(name) || "java.lang.Deprecated".equals(name)) { return true; } } return false; }