UsageType (PsiElement element, UsageTarget @NotNull [] targets) { UsageType classUsageType = getClassUsageType(element, targets); if (classUsageType != null) return classUsageType; UsageType methodUsageType = getMethodUsageType(element); if (methodUsageType != null) return methodUsageType; if (element instanceof PsiLiteralExpression) { return UsageType.LITERAL_USAGE; } return null; }