List<String> (@Nullable Location location) { if (location == null) return Collections.emptyList(); if (location instanceof GradleTaskLocation) { return ((GradleTaskLocation)location).getTasks(); } Module module = location.getModule(); return getTasksTarget(location.getPsiElement(), module); }