notnull
IDEA-131112 Android-specific actions should be disabled for non-android projects, otherwise they can be invoked though "find action"
Fixed infinite sync with empty gradle.settings file.

CLs https://android-review.googlesource.com/107590 and
https://android-review.googlesource.com/108422 added a
check for empty settings.gradle where if found, the IDE
will warn the users and ask them if they'd like to
continue with project sync. This was a workaround for
https://code.google.com/p/android/issues/detail?id=72294
and back then I thought this was a bug in Gradle.

After doing some debugging, it turns out that the bug is
in Android Studio, where the listener that gets notified
when a sync is finished was not finishing project setup
when an empty settings.gradle file was present.

In this CL:
- Moved code that sets up projects during sync from
  GradleProjectImporter to a new class, ProjectSetupTask.
  This makes the code easier to maintain.
- When we detect that the project is non-Android Gradle
  project, we finish project setup (this is the fix
  for the bug.)
- Removed code in PreSyncChecks that checked if a
  settings.gradle file is empty (by parsing the contents
  using the Groovy lexer) and checked if a project
  is a multi-module project (by counting the number
  of build.gradle files in the project.) This code
  was quite fragile.

Fixes
https://code.google.com/p/android/issues/detail?id=72294
finally!

Change-Id: I8b75051ff8e37bb04eb2cb1d55971d775e7ebb27
(cherry picked from commit 64d7af9)
Fixed logic that updates Gradle version in wrapper before syncing.

The old logic was checking that the URL started with 'http' while
in reality it starts with 'https'. The fix involved existing method
in GradleUtil to get the current Gradle version in wrapper file.

This CL also sets the right distribution type (DEFAULT_WRAPPED)
before checking (minor fix.)

This CL may fix
https://code.google.com/p/android/issues/detail?id=75075
but since I haven't been able to reproduce the issue, I'm not closing
the bug until the filer confirms that the issue is no longer present.

Change-Id: I86dc11faac5b8f8e9426038791fc0ed2267aa66c
(cherry picked from commit 4a265db)
IDEA-131023 Android+Maven: package assets from AARs into APK
IDEA-129775 add jars inside of "libs" folder of AAR into classpath
fix: it wasn't possible to choose Android L by default
IDEA-130315 remove android TV template as it is not supported correctly by old project wizard
merge unused declaration and unused symbol inspections
provide description for heavy running task
commit documents in tests
lastProjectLocation is not roamable, so, must be moved to RecentProjectsManager
extract RecentProjectsManager and move to platform-api
removed InspectorManagerEx usage if possible
IDEA-131264 do not ignore "compile with" setting
IDEA-130605 Import Settings: "Select Components to Import" dialog has some unreadable items
IDEA-130605 Import Settings: "Select Components to Import" dialog has some unreadable items
consistency of cached value reading (cherry picked from commit 70176c1)
Kotlin DSL Preview related changes.