boolean (@NotNull final String text, @NotNull final FQNamesProvider names) { for (final String lastComponent : getLastComponents(names)) { if (text.contains(lastComponent)) { return true; } } return false; }